SetGravity
From Liberty Unleashed Wiki
Sets the gravity in the server. This affects all players.
Syntax
bool SetGravity( float fGravity )
Arguments
- fGravity - The value that you want to set the gravity to
Example
This will set the gravity when a player types '/grav 0.001'
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "grav" ) { SetGravity( text.tofloat() ); } }
Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.
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