- Joined
- May 24, 2016
- Messages
- 339
So, the problem is, I want to now if AI unit already got a command to attack a place (with x and y)
This is crucial to me because if I send the command again while he is "attacking place" already, unit is getting laggy, when there are a whole army moving.
I tried to if GetUnitCurrentOrder(F) == 851983 condition (I converted "attack" string into integer to know that), but it does not work.
This is crucial to me because if I send the command again while he is "attacking place" already, unit is getting laggy, when there are a whole army moving.
I tried to if GetUnitCurrentOrder(F) == 851983 condition (I converted "attack" string into integer to know that), but it does not work.