You will have to use a timer(Jass) or a group and a Periodic event(GUI) to get the units original location and new location, then subtract those to. DistanceBetweenPoints
If they are 0 then the unit did not move, if they are > 0 then the unit did and that will be the distance traveled.
To get the locations just create 2 variables, Pos1 and Pos2. Where Pos1 is the current location and Pos2 the new one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.