v0.13.8

GetUnitSpeed

functionimplementedavailable in: camelot

Returns the movement speed of the unit.

signaturewowlua
function GetUnitSpeed(    unit: string): (number, number, number, number)

Parameters

nametypedescription
unitstringThe unit to query the speed of.

Returns

#nametypedescription
1currentSpeednumbercurrent movement speed in yards per second (normal running: 7; an epic ground mount: 14)
2runSpeednumberthe maximum speed on the ground, in yards per second (including talents such as Pursuit of Justice and ground mounts)
3flightSpeednumberthe maximum speed while flying, in yards per second (the unit need to be on a flying mount to get the flying speed)
4swimSpeednumberthe 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 ↗.