- Joined
- Feb 18, 2016
- Messages
- 96
Hello
I am trying to finish this trigger that should make certain units(buildings in this case) stop from attacking heros and change the objective of the order to another random non hero unit in their range
My problem is that i can not create the action
I am trying to finish this trigger that should make certain units(buildings in this case) stop from attacking heros and change the objective of the order to another random non hero unit in their range
My problem is that i can not create the action
-
nohero attack
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacking unit) is A structure) Equal to True
- ((Attacked unit) is A Hero) Equal to True
-
Actions
- Set APOINTTEMP = (Position of (Attacking unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 700.00 of APOINTTEMP) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ???
-
Then - Actions
- ???
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_APOINTTEMP)
-
Events