Hello!
This map I'm working on has 5 spawning areas each with their own element. I would like to order the units around but within a rough range of their spawn point. Also not to limit them to this range but make it so they are not likely to move from it.
I've triggered an attack-move order to trained units sending them a random distance between 500 and 2000 in random direction but once they complete this attack move they travel back to their spawn point.
I tried to trigger with conditions to move them when they stop but it won't work...
I was thinking to change the condition to 'if unit issued an order NOT EQUAL to attack-move' then run trigger but I am curious this might interfere with orders like casting spells or attacking.
Also how can I write attack move as a string? Do I need to do arithmetic and make 'attack + move' or simply 'attack,move'?
Anyone has some info on this?
This map I'm working on has 5 spawning areas each with their own element. I would like to order the units around but within a rough range of their spawn point. Also not to limit them to this range but make it so they are not likely to move from it.
I've triggered an attack-move order to trained units sending them a random distance between 500 and 2000 in random direction but once they complete this attack move they travel back to their spawn point.
I tried to trigger with conditions to move them when they stop but it won't work...
-
dontstandstill
-
Events
- Unit - A unit Is issued an order targeting a point
-
Conditions
- (Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
Or - Any (Conditions) are true
-
Conditions
- (Issued order) Equal to (Order(stop))
- (Issued order) Equal to (Order(move))
-
Conditions
-
Actions
- Set temp_creep_pos = (Position of (Triggering unit))
- Set temp_creep_pos2 = (temp_creep_pos offset by (Random real number between 500.00 and 2000.00) towards (Random angle) degrees)
- Unit - Order (Triggering unit) to Attack-Move To temp_creep_pos2
- Custom script: call RemoveLocation(udg_temp_creep_pos)
- Custom script: call RemoveLocation(udg_temp_creep_pos2)
-
Events
Also how can I write attack move as a string? Do I need to do arithmetic and make 'attack + move' or simply 'attack,move'?
Anyone has some info on this?