API GetUnitSpeed

Returns a value representing the moving speed of a unit. Added in Patch 3.0.1. value = GetUnitSpeed("unit")

Arguments

 * unit : String (unitId) - Unit to query the speed of. This has not been tested with all units but does work for "Player" units.

Returns

 * value : Number - current movement speed in yards per second (normal running: 7; an epic ground mount: 14)

Example
The following snippet prints your current movement speed in percent: /script print(string.format("Current speed: %d%%", GetUnitSpeed("player") / 7 * 100))