Squirrel/Server/Functions/Game/GetWeather

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Updated old functions)
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|GetWeather}}
 
Returns the current weather ID in the server.
 
Returns the current weather ID in the server.
  

Latest revision as of 09:44, 11 October 2010

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

Returns the current weather ID in the server.

[edit] Syntax

  1. int GetWeather()

[edit] Arguments

  • None

[edit] 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.  

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox