GetNPCLocation

From Onset Developer Wiki
Revision as of 13:03, 19 November 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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