• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

"Unit is moving" check?

Status
Not open for further replies.
You can use a system like this:
http://www.hiveworkshop.com/forums/spells-569/unit-moving-2-0-0-0-a-199189/

Detecting movement is a bit difficult because there are many orders that instigate movement. The system above is pretty good, but you want to make sure you add a filter to the trigger so that it doesn't constantly track all unit movement on the map.

If you don't want to use that system, then the most ideal way would be to store the coordinates of the unit, start a short timer, and then compare the new coordinates with the old one. That is essentially what Bribe's system does.
 
Status
Not open for further replies.
Top