Difference between revisions of "LUA:SetHeading"
(Created page with "= LUA Functions: SetHeading() = Sets the heading of the given spawn ==== Syntax ==== SetHeading(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''param2...") |
(No difference)
|
Latest revision as of 22:55, 11 September 2013
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