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: |
| 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 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: |
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" /> |