SetNPCRespawnTime: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0.2}} {{FuncDescription|Set the NPC's respawn time.}} {{FuncSyntax|GetNPCRespawnTime(NPC, time)}} {{FuncParameters}} {{FuncParam|NPC|The NPC identi..." |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
{{FuncDescription|Set the NPC's respawn time.}} | {{FuncDescription|Set the NPC's respawn time.}} | ||
{{FuncSyntax| | {{FuncSyntax|SetNPCRespawnTime(NPC, time)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
Line 13: | Line 13: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
SetNPCRespawnTime(npc, 10000) | SetNPCRespawnTime(npc, 10000) -- NPC will ragdoll for 10 seconds before it respawns | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} | |||
Latest revision as of 11:23, 1 September 2020
Description
Set the NPC's respawn time.
Syntax
SetNPCRespawnTime(NPC, time)
Parameters
- NPC
The NPC identifier. - time
The time in milliseconds.
Return Value
- Returns true on success.
Example
SetNPCRespawnTime(npc, 10000) -- NPC will ragdoll for 10 seconds before it respawns
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