Difference between revisions of "LUA:GetSpeed"

(Created page with "= LUA Functions: GetSpeed() = Gets the current speed of the given spawn ==== Syntax ==== var = GetSpeed(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param...")
 
(No difference)

Latest revision as of 18:40, 11 September 2013

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