GetNPCLocation
From Onset Developer Wiki
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
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime