Squirrel/Server/Functions/Game/GetGamespeed
From Liberty Unleashed Wiki
(Difference between revisions)
m (Updated with the latest functions) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|GetGamespeed}} | |
This returns the current gamespeed setting in the server. | This returns the current gamespeed setting in the server. | ||
Latest revision as of 10:43, 11 October 2010
This returns the current gamespeed setting in the server.
[edit] Syntax
float GetGamespeed()
[edit] Arguments
- None
[edit] Example
This will return the current gamespeed in the server when somebody types '/gamespeed'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "serverspeed" ) { MessagePlayer( "Current gamespeed in the server is: " + GetGamespeed(), plr ); } }
[edit] Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.
[edit] 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