onClientRequestClass
From Liberty Unleashed Wiki
This event is called when the local player requests another spawn class.
Syntax
function onClientRequestClass( spawnclass )
Arguments
- spawnclass - The pointer to the class the local player requested
Returns
This event does not handle return values.
Example
This will message the player in which district they will spawn, should they choose the selected skin.
function onClientRequestClass( spawnclass ) { Message("You will spawn 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