No categories assigned
LUA:SetHeading
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SetHeading()
Sets the heading of the given spawn
Syntax
SetHeading(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (float)
- param1 is the spawn who's heading we want to set
- param2 is the heading we want to set
Usage
function hailed(NPC, Spawn)
SetHeading(NPC, 180.5)
end
When hailed the NPC will change its heading to 180.5 degrees