Im looking for way to tell if unit is moving at the moment
what i mean if its in movement even if its from attack command or anything smillar (patrol, casting something at point which require unit to move to it etc)
Im looking for way to tell if unit is moving at the moment
what i mean if its in movement even if its from attack command or anything smillar (patrol, casting something at point which require unit to move to it etc)
I doubt there's a way to check if a unit is moving. However, there may be a way to detect if a unit is currently using a Mover, try that.
There is an existing validator called NotMoving (Unnamed) which is the Unit Compare Speed type that checks that the target's speed is equal to 0.
I created a new validator and adapted it from that one, checking to see if the target's movement speed is not equal to 0.
I then made an ability which dealt damage over time if the target was moving and it worked quite well. Because it checks the unit's current speed rather than the command it received, it should work if they perform other actions like attack move or patrol.
Im looking for way to tell if unit is moving at the moment
what i mean if its in movement even if its from attack command or anything smillar (patrol, casting something at point which require unit to move to it etc)
I doubt there's a way to check if a unit is moving. However, there may be a way to detect if a unit is currently using a Mover, try that.
Actually it is possible.
There is an existing validator called NotMoving (Unnamed) which is the Unit Compare Speed type that checks that the target's speed is equal to 0.
I created a new validator and adapted it from that one, checking to see if the target's movement speed is not equal to 0.
I then made an ability which dealt damage over time if the target was moving and it worked quite well. Because it checks the unit's current speed rather than the command it received, it should work if they perform other actions like attack move or patrol.
epic, works perfectly and saves me some dirty trigger work. thanks!
You can also use a check on the number of orders currently on a unit, and if its < 1 you know its not doing anything.
@EphemeralNight: Go
True, but it might be doing something else and not moving.