It works for leader[1] but not leader[2]. For leader[2], followers won't attack move target location.
-
attackground
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to attacklocation dummy
-
Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Casting unit) Equal to leader[(Integer A)]
-
Then - Actions
- Set tempattackmoveloc[(Integer A)] = (Target point of ability being cast)
-
Unit Group - Pick every unit in followers[(Integer A)] and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Attack-Move To tempattackmoveloc[(Integer A)]
-
Loop - Actions
- Custom script: call RemoveLocation( udg_tempattackmoveloc[bj_forLoopAIndex])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Events