Squirrel/Server/Functions/Game/GetWeatherLock
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function returns whether the automatic weather option has been locked. == Syntax == <code>bool GetWeatherLock()</code> == Arguments == * '''none''' == Example == {{Squ...) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "weatherlock" ) GetWeatherLock() | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This function is used to get the current status of the weather lock in the server. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Game}} | {{Squirrel/Server/Functions/Game}} |
Revision as of 02:46, 7 January 2010
This function returns whether the automatic weather option has been locked.
Syntax
bool GetWeatherLock()
Arguments
- none
Example
function onPlayerCommand( player, command, text ) { if ( command == "weatherlock" ) GetWeatherLock() }
Notes
This function is used to get the current status of the weather lock in the server.
Related Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock