No categories assigned

LUA:GetSpeed

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