GetNPCLocation

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.
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