Scripting/Server/Classes/Player/Spawn

Force-spawns the player at their current class. Works from the class screen or while playing. Fires onPlayerSpawn. Use this for auto-spawn gamemodes.

Syntax

player.Spawn()

Example

function onPlayerJoin( player )
{
	player.Spawn();      // gamemodes without a class screen: spawn at once
}

Section: Player

Categories: Server methods | Player