Scripting/Client/Events/onClientSpawn
The local player spawned. respawn is 0 for the first/forced spawn and 1 for a respawn after death.
Syntax
onClientSpawn(respawn)Arguments
- any respawn –
respawnis 0 for the first/forced spawn and 1 for a respawn after death.
Example
function onClientSpawn( respawn )
{
Message( "onClientSpawn fired" );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- onScriptLoad
- onScriptUnload
- onClientRender
- onClientCommand
- onClientMouseMove
- onClientMouseClick
- onClientMouseWheel
- onClientKeyStateChange
- onGameWindowResize
- onObjectShot
Section: Client events
Categories: Client events | Client events