Method Unit:GetSpeed [-] [+]

Returns the Unit's speed of given [UnitMoveType].

UnitMoveType ID
MOVE_WALK 0
MOVE_RUN 1
MOVE_RUN_BACK 2
MOVE_SWIM 3
MOVE_SWIM_BACK 4
MOVE_TURN_RATE 5
MOVE_FLIGHT 6
MOVE_FLIGHT_BACK 7
MOVE_PITCH_RATE 8

Synopsis

speed = Unit:GetSpeed( type )

Arguments

UnitMoveType type
See method description.

Returns

number speed

Valid numbers: all decimal numbers.

Generated on
© 2010 - 2024 Eluna Lua Engine