SetWeather

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

Changes the weather in the server. This affects all players.

Syntax

  1. bool SetWeather( int weatherid )

Arguments

  • weatherid - The WeatherID you want to change the server weather to

Example

This will change the weather in the server when a player types '/setweather 1'.

  1.  
  2. function onPlayerCommand( plr, cmd, text )
  3. {
  4. if ( cmd == "setweather" )
  5. {
  6. SetWeather( text.tointeger() );
  7. }
  8. }
  9.  

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