SetSurfaceTraction
From Liberty Unleashed Wiki
This sets the traction of the specified surface
Syntax
float SetSurfaceTraction( int surface, float value )
Arguments
- surface - The surface to query. As defined Here
- value - The value to set the surface traction to
Example
This will set the rubber/rubber surface to a traction level of 1.00 when the player types '/surfacetraction'
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "surfacetraction" ) { SetSurfaceTraction( SURFACE_RUBBER_RUBBER, 1.00 ); } return 1; }
Notes
The event onPlayerCommand was used 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