CreateNPC: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
{{FuncParam|h|Heading of the npc}} | {{FuncParam|h|Heading of the npc}} | ||
{{FuncReturnValue| | {{FuncReturnValue|The NPC identifier}} | ||
== Example == | == Example == | ||
Line 21: | Line 21: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:NPCFunctions}} | |||
Latest revision as of 06:57, 13 December 2019
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