# Method Unit:GetSpeed [-] [+]

Returns the Unit's speed 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:GetSpeed( type )`

## Arguments

`UnitMoveType type`
  See method description.

## Returns

`number speed`

  Valid numbers: all decimal numbers.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine