CreateNPC
From Onset Developer Wiki
Description
Creates a NPC.
Syntax
CreateNPC(x, y, z, h)
Parameters
- x
X location - y
Y location - z
Z location - h
Heading of the npc
Return Value
- The NPC identifier
Example
AddEvent("OnPackageStart", function()
CreateNPC(128959.1015625, 79325.328125, 1579.2750244141, 84.066261291504)
end)
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