Skip to content

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.

function OnPlayerSpawn(pid)
-- ...
end
Parameter Type
pid number the player

nothing

function OnPlayerSpawn(pid)
ShowHudText(clock, pid)
GameText(pid, GetLevel(), 3000, GAMETEXT_CENTRE)
end

OnPlayerRequestSpawn · SpawnPlayer · ShowHudText · the Players group of the index