Method Unit:GetSpeedRate [-] [+]

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

enum UnitMoveType
{
    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:GetSpeedRate( type )

Arguments

UnitMoveType type
See method description.

Returns

number speed

Valid numbers: all decimal numbers.

Generated on
©2016 - Eluna Lua Engine