onClientRequestClass

From Liberty Unleashed Wiki
Revision as of 21:02, 11 November 2013 by Thijn (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when the local player requests another spawn class.

Syntax

  1. 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.

  1.  
  2. function onClientRequestClass( spawnclass )
  3. {
  4. Message("You will spawn in the " + GetDistrictName( spawnclass.Pos ) + " district.");
  5. }
  6.  

Notes

The functions Message and GetDistrictName were used in in this example. More info about them in corresponding pages.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox