- Joined
- Mar 1, 2013
- Messages
- 555
Hey friends
I've just made an awsome discovery I'd like to share. I was once searching for how to detect if a unit is moving and I've even found a complex system on this site that tells you when (and wich) a unit is moving.
So I used this trigger:
So when the current order of the unit was order(stop) then the string returned nothing, wich means 'stop' is actually '<Emty String>'.
When the unit was moving, it returned 'smart'. So order(move) is actually order(smart).
I really hope it help and you are welcome to give feedback
I've just made an awsome discovery I'd like to share. I was once searching for how to detect if a unit is moving and I've even found a complex system on this site that tells you when (and wich) a unit is moving.
So I used this trigger:
-
Order test
-
Events
-
Time - Every 0.05 seconds of game time
-
-
Conditions
-
Actions
-
Set sOrder[1] = (String((Current order of unit 0034 <gen>)))
-
Game - Display to (All players) the text: sOrder[1]
-
-
When the unit was moving, it returned 'smart'. So order(move) is actually order(smart).
I really hope it help and you are welcome to give feedback