GetGamespeed
From Liberty Unleashed Wiki
This returns the current gamespeed setting in the server.
Syntax
float GetGamespeed()
Arguments
- None
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 ); } }
Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.
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