moving
Returns the boolean if the UNIT is moving, otherwise false.
moving([UnitId]) : boolean
1. See Wowpedia for more information on WoW Unit IDs. Will default to 'player' if nothing is specified as an argument.
Example
if moving('target') then MoveForwardStop() end
Note
This uses GetUnitSpeed(unit) > 0 , returning boolean.