GetNPCHeading: Difference between revisions

From Onset Developer Wiki
No edit summary
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the specified NPC's heading (rotation).}}


{{FuncSyntax|GetNPCHeading(npc)}}
{{FuncSyntax|GetNPCHeading(npc)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|npc|__EDIT_ME__}}
{{FuncParam|npc|The NPC identifier}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns the heading}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang='Lua'>
local heading = GetNPCHeading(npcId)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{NPCFunctions}}

Latest revision as of 17:16, 16 January 2020

GetNPCHeading

Type: Function
Context: Server & Client
Introduced: v1.0

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