OnPlayerSpawn
The player stands in the world and the others see them.
After the first spawn, every respawn after a death, and every SpawnPlayer. Vitals are full, the position is the
spawn point, IsPlayerInWorld is true. Show the player their HUD texts here - a late joiner gets nothing shown before.
Syntax
Section titled “Syntax”function OnPlayerSpawn(pid) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerSpawn(pid) ShowHudText(clock, pid) GameText(pid, GetLevel(), 3000, GAMETEXT_CENTRE)endSee also
Section titled “See also”OnPlayerRequestSpawn · SpawnPlayer · ShowHudText · the Players group of the index
