SetNPCRespawnTime

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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