Squirrel/Server/Functions/Game/GetWeather

From Liberty Unleashed Wiki
Revision as of 23:30, 26 November 2009 by Juppi (Talk | contribs)

Jump to: navigation, search

Returns the current weather ID in the server.

Syntax

  1. int GetWeather()

Arguments

  • None

Example

This command will tell player the current weather ID when they type '/weather'.

  1.  
  2. function onPlayerCommand( plr, cmd, text )
  3. {
  4. if ( cmd == "weather" )
  5. {
  6. MessagePlayer( "Server weather ID is: " + GetWeather(), plr );
  7. }
  8. }
  9.  

Notes

The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox