ResetVehiclesLODDistance: Difference between revisions
Jump to navigation
Jump to search
(→See Also: +engineGet/SetModelLODDistance) |
mNo edit summary |
||
Line 7: | Line 7: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool resetVehiclesLODDistance ( ) | bool resetVehiclesLODDistance ( ) | ||
</syntaxhighlight> | |||
===Returns=== | |||
Returns true if the ambient sounds were reset, false otherwise. | |||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
function resetLOD() | |||
resetVehiclesLODDistance() --This will reset the LOD distance | |||
end | |||
addCommandHandler("resetlod", resetLOD) -- If you use this command it would trigger the resetLOD function | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 05:50, 20 December 2017
Script Example Missing Function ResetVehiclesLODDistance needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
Resets the distance of vehicles LOD to default. Default values depends on client setting. If client has enabled high detail vehicles in video options, value will be reset to (500, 500) - otherwise to (70, 150). You can check value of this option using dxGetStatus (SettingHighDetailVehicles).
Syntax
bool resetVehiclesLODDistance ( )
Returns
Returns true if the ambient sounds were reset, false otherwise.
Example
function resetLOD() resetVehiclesLODDistance() --This will reset the LOD distance end addCommandHandler("resetlod", resetLOD) -- If you use this command it would trigger the resetLOD function
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel