OnNPCSpawn: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Server|1.0}} | {{Info|Event|Server|1.0}} | ||
{{FuncDescription|Event thats called when a NPC is spawned.}} | {{FuncDescription|Event thats called when a NPC is spawned after it died. Death time can be set with [[SetNPCRespawnTime]].}} | ||
{{FuncSyntax|OnNPCSpawn}} | {{FuncSyntax|OnNPCSpawn(npc)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|npc|The npc identifier}} | |||
== Example == | == Example == | ||
__EDIT_ME__ | __EDIT_ME__ |
Latest revision as of 11:22, 1 September 2020
Description
Event thats called when a NPC is spawned after it died. Death time can be set with SetNPCRespawnTime.
Syntax
OnNPCSpawn(npc)
Parameters
- npc
The npc identifier
Example
__EDIT_ME__
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