SetNPCRespawnTime: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
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}}
{{NPCFunctions}}

Latest revision as of 11:23, 1 September 2020

SetNPCRespawnTime

Type: Function
Context: Server
Introduced: v1.0.2

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