Squirrel/Server/Functions/SpawnClass/AddSpawnClass

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|AddSpawnClass}} This function adds a new spawnclass to the game. Used in the spawnscreen == Syntax == <code>SpawnClass AddSpawnClass( int skin, int team, Vecto…')

Revision as of 14:47, 15 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function adds a new spawnclass to the game. Used in the spawnscreen

Syntax

  1. SpawnClass AddSpawnClass( int skin, int team, Vector pos, float angle, int col, int spawnscreen )

Arguments

  • skin - The skin ID to spawn as
  • team - The team ID of the spawn
  • pos - The location the class will spawn at
  • angle - The angle the spawn will be facing when spawned
  • col - The spawns colour, used in the nickname and radar blip
  • spawnscreen - The spawn screen to use.

Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o

Explanation for the example

  1.  
  2. -- Todo
  3.  

Notes

-- List of used functions and other notes here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox