Player.Spawn

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

This function forces a player to spawn.

Syntax

  1. bool Player.Spawn( [ SpawnClass spawn ] )

Arguments

  • spawn - This is an optional pointer to a spawn class which you wish the player to use. If this argument is not used the player will use their current class

Example

This command will make yourself spawn.

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "spawnme" )
  5. {
  6. player.Spawn();
  7. }
  8. return 1;
  9. }
  10.  

Notes

The call onPlayerCommand was used in in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox