GetNPCHeading

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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