GetNPCHeading: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get the specified NPC's heading (rotation).}} | ||
{{FuncSyntax|GetNPCHeading(npc)}} | {{FuncSyntax|GetNPCHeading(npc)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|npc| | {{FuncParam|npc|The NPC identifier}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns the heading}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
local heading = GetNPCHeading(npcId) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} |
Latest revision as of 17:16, 16 January 2020
Description
Get the specified NPC's heading (rotation).
Syntax
GetNPCHeading(npc)
Parameters
- npc
The NPC identifier
Return Value
- Returns the heading
Example
local heading = GetNPCHeading(npcId)
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