GetNPCLocation

From Onset Developer Wiki
GetNPCLocation

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

Description

Get the NPC's location vectors.

Syntax

GetNPCLocation(npc)

Parameters

  • npc
    The NPC identifier.

Return Value

  • Returns the XYZ vectors of the NPC's location.

Example

local x, y, z = GetNPCLocation(npcid)

See also