Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 5 and Version 6 of code/doc/AI


Ignore:
Timestamp:
Nov 30, 2015, 2:33:30 PM (8 years ago)
Author:
gania
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/AI

    v5 v6  
    3232 * PROTECT: follows a specific target until no protection required (when that spaceship dies).
    3333 * FLY: flies to a specific point.
    34 More than one Actionpoint can be attached to a controller, resulting in a slightly complex behaviour, for example, following code would result in a spaceship firstly attacking a spaceship with a name "attack", then trying to protect a human player, if none is spawned or human dies, it protects a spaceship with a name "protect", then it fights all enemies on the map:
     34More than one Actionpoint can be attached to a controller, resulting in a slightly complex behaviour, for example, following code would result in a spaceship firstly flying towards (0,0,0), then attacking a spaceship with a name "attack", then trying to protect a human player, if none is spawned or human dies, it protects a spaceship with a name "protect", then it fights all enemies on the map:
    3535{{{
    3636<SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2">
     
    4242      <actionpoints>
    4343        <Actionpoint position="0,0,0" action="FLY" />
    44         <Actionpoint position="-1000,750,-500" action="ATTACK" attack="attack" />
    45         <Actionpoint position="-1000,750,-500" action="PROTECt" protectMe=true />
    46         <Actionpoint position="-1000,750,-500" action="PROTECt" protect="protect" />
    47         <Actionpoint position="-1000,750,-500" action="FIGHTALL" />
     44        <Actionpoint position="0,0,0" action="ATTACK" attack="attack" />
     45        <Actionpoint position="0,0,0" action="PROTECt" protectMe=true />
     46        <Actionpoint position="0,0,0" action="PROTECt" protect="protect" />
     47        <Actionpoint position="0,0,0" action="FIGHTALL" />
    4848      </actionpoints>
    4949    </DivisionController>