No categories assigned

LUA:GetSpeed

Revision as of 18:40, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetSpeed() = Gets the current speed of the given spawn ==== Syntax ==== var = GetSpeed(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetSpeed()

Gets the current speed of the given spawn


Syntax

var = GetSpeed(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's speed we want to get


Usage

function hailed(NPC, Spawn)
    Say(NPC, "My speed is: " .. GetSpeed(NPC))
end

The NPC will respond with its current speed

Notes

Returns a float