No categories assigned
LUA:GetSpeed
- Last edited 12 years ago by I need to Update My Profile
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