OnPlayerSpawn

From Onset Developer Wiki
Revision as of 19:24, 22 March 2019 by BlueMountains (talk | contribs)
OnPlayerSpawn

Type: Event
Context: Server
Introduced: v1.0

Description

Called when a player spawns. This usually happens after they died. Use SetPlayerRespawnTime to control how long it takes before they respawn.

Syntax

OnPlayerSpawn(player)

Parameters

  • player
    The player who has spawned.

Example

function OnPlayerSpawn(player)

end
AddEvent("OnPlayerSpawn", OnPlayerSpawn)

See also

Player

Vehicle

Game

Package

NPC

Object

Pickup

Text3D

Door