Hey, I discovered something yesterday that may be of interest to you guys. Notice the matching condition in the below trigger.
What if your unit is doing nothing at all (standing still without having been given a 'stop' command)? This unit will be ignored by the trigger if you use 'stop' in the above condition, because even though it has stopped, is not actually being ordered to stop.
So, how do you get this condition to target such units?
When entering the unit order in the string box, just input a single space. This will cause the trigger to grab units who are doing nothing without having been ordered to stop!
Like this
-
Check a unit's current order
-
Events
- (whatever you want it to be)
-
Conditions
- (again, your choice)
-
Actions
-
Unit Group - Pick every unit in (whatever region) matching (((Current order of (Matching unit)) Equal to (Order(stop))) and do (Actions)
-
Loop - Actions
- (whatever actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (whatever region) matching (((Current order of (Matching unit)) Equal to (Order(stop))) and do (Actions)
-
Events
What if your unit is doing nothing at all (standing still without having been given a 'stop' command)? This unit will be ignored by the trigger if you use 'stop' in the above condition, because even though it has stopped, is not actually being ordered to stop.
So, how do you get this condition to target such units?
When entering the unit order in the string box, just input a single space. This will cause the trigger to grab units who are doing nothing without having been ordered to stop!
Like this
-
Check a unit's current order
-
Events
- (whatever you want it to be)
-
Conditions
- (again, your choice)
-
Actions
-
Unit Group - Pick every unit in (whatever region) matching (((Current order of (Matching unit)) Equal to (Order( ))) and do (Actions)
-
Loop - Actions
- (whatever actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (whatever region) matching (((Current order of (Matching unit)) Equal to (Order( ))) and do (Actions)
-
Events