Squirrel/Server/Functions/SpawnClass/Skin

From Liberty Unleashed Wiki
Revision as of 17:46, 8 March 2010 by Force (Talk | contribs)

Jump to: navigation, search

This SpawnClass class member returns or sets the skin selected for the given spawn class.

Syntax

You can either return or set a new value using this member:

  1. int SpawnClass.Skin
  1. SpawnClass.Skin = int skin

Arguments

  • skin - The new skin for the spawn class

Example 1. Returning

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "getskin" )
  5. {
  6. local skin = p_SpawnClass.Skin;
  7. MessagePlayer( "The current spawn class skin is: " + skin, player );
  8. }
  9. }
  10.  

This example will return the skin of the spawn class, that we found earlier in FindSpawnClass.

Example 2. Setting

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

Notes

-- Example notes/used functions here

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox