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..."
 
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


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


{{FuncSyntax|SetNPCHeading(npc, heading)}}
{{FuncSyntax|SetNPCHeading(npc, heading)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|npc|__EDIT_ME__}}
{{FuncParam|npc|The Npc identifier.}}
{{FuncParam|heading|__EDIT_ME__}}
{{FuncParam|heading|The heading in floats.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang='Lua'>
SetNPCHeading(npcId, 90.0)
</syntaxhighlight>


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

Latest revision as of 17:08, 16 January 2020

SetNPCHeading

Type: Function
Context: Server
Introduced: v1.0

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