onClientSpawn
From Liberty Unleashed Wiki
This event is called when the local player spawns.
Syntax
function onClientSpawn( spawnclass )
Arguments
- spawnclass - The pointer to the class the local player spawned as
Returns
This event does not handle return values.
Example
This will print the district the player spawned in.
function onClientSpawn( spawnclass ) { Message("You spanwed in the " + GetDistrictName( spawnclass.Pos ) + " district."); }
Notes
The functions Message and GetDistrictName were used in in this example. More info about them in corresponding pages.
Related Events
- onClientArmourChange
- onClientCashChange
- onClientCollideWithPlayer
- onClientCommand
- onClientDeath
- onClientFall
- onClientHealthChange
- onClientHurt
- onClientKill
- onClientKeyStateChange
- onClientRequestClass
- onClientRequestSpawn
- onClientShot
- onClientSpawn
- onClientUseDetonator
- onClientWeaponChange
- onPlayerDeath
- onPlayerJoin
- onPlayerKill
- onPlayerPart
- onPlayerSpawn