SetNPCHeading: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetNPCHeading(npc, heading)}} {{FuncParameters}} {{FuncParam|npc|__EDIT_ME__}} {{FuncParam|heading..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set's the specified NPC's heading (rotation).}} | ||
{{FuncSyntax|SetNPCHeading(npc, heading)}} | {{FuncSyntax|SetNPCHeading(npc, heading)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|npc| | {{FuncParam|npc|The Npc identifier.}} | ||
{{FuncParam|heading| | {{FuncParam|heading|The heading in floats.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
SetNPCHeading(npcId, 90.0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} |
Latest revision as of 17:08, 16 January 2020
Description
Set's the specified NPC's heading (rotation).
Syntax
SetNPCHeading(npc, heading)
Parameters
- npc
The Npc identifier. - heading
The heading in floats.
Return Value
- This function true on success.
Example
SetNPCHeading(npcId, 90.0)
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime