GetSpawnClassCount

From Liberty Unleashed Wiki
Revision as of 10:38, 11 October 2010 by VRocker (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 function returns the number of different spawn classes on the server.

Syntax

  1. int GetSpawnClassCount()

Arguments

  • none

Example

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

This example will return the number of spawn classes.

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