OnPlayerSpawn: 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 & Client|1.0}}


{{FuncDescription|Called when a player spawns. This usually happens after they died. Use [[SetPlayerRespawnTime]] to control how long it takes before they respawn.}}
{{FuncDescription|Called when a player spawns. This usually happens after they died. Use [[SetPlayerRespawnTime]] to control how long it takes before they respawn.}}

Revision as of 09:45, 23 March 2019

OnPlayerSpawn

Type: Event
Context: Server & Client
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