GetUnitSpeed
functionimplementedavailable in: camelot
Returns the movement speed of the unit.
function GetUnitSpeed( unit: string): (number, number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | The unit to query the speed of. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | currentSpeed | number | current movement speed in yards per second (normal running: 7; an epic ground mount: 14) |
| 2 | runSpeed | number | the maximum speed on the ground, in yards per second (including talents such as Pursuit of Justice and ground mounts) |
| 3 | flightSpeed | number | the maximum speed while flying, in yards per second (the unit need to be on a flying mount to get the flying speed) |
| 4 | swimSpeed | number | the maximum speed while swimming, in yards per second (not tested but it should be as the flying mount) |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.