onClientSpawn

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This event is called when the local player spawns.

Syntax

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

  1.  
  2. function onClientSpawn( spawnclass )
  3. {
  4. Message("You spanwed 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