- Joined
- Aug 19, 2007
- Messages
- 1,380
- fixed, see below
Hi all,
I made a system where AI do droppings (with flying transports), but as soon as they unloaded the units at the enemy base, the unloaded units just walk back to their own base (except when being attacked by e.g. enemy towers) even while the enemy buildings are in their attack range.
So I need to give them an order to attack-move. I just don't really know which event I need to use. At the moment I have the following but it doesn't work (I thought maybe that when a unit is unloaded it re-enters the map):
Hi all,
I made a system where AI do droppings (with flying transports), but as soon as they unloaded the units at the enemy base, the unloaded units just walk back to their own base (except when being attacked by e.g. enemy towers) even while the enemy buildings are in their attack range.
So I need to give them an order to attack-move. I just don't really know which event I need to use. At the moment I have the following but it doesn't work (I thought maybe that when a unit is unloaded it re-enters the map):
-
AI unit is unloaded
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- ((Owner of (Triggering unit)) controller) Equal to Computer
- ((Triggering unit) is A peon-type unit) Not equal to True
- ((Triggering unit) is A structure) Not equal to True
-
Actions
- Set TEMP_PointUnload = (Position of (Triggering unit))
- Unit - Order (Triggering unit) to Attack-Move To TEMP_PointUnload
- Custom script: call RemoveLocation(udg_TEMP_PointUnload)
-
Events
Last edited: