ResetFarClipDistance: Difference between revisions
Jump to navigation
Jump to search
("Added" resetFarClipDistance( ) function page) |
m (Updated note) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
This function resets the far clip distance to its default state. | This function resets the far clip distance to its default state. | ||
{{Note|The function will not reset far clip distance client-side, unless it is relying on a value set by the server.}} | |||
{{Note|The function will reset the far clip distance to ''false'' server-side, as there is no default value to begin with.}} | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Latest revision as of 13:14, 3 August 2014
This function resets the far clip distance to its default state.
Syntax
bool resetFarClipDistance ( )
Returns
Returns true if operation was successful, false otherwise.
Example
This example will demonstrate basic functionality of the function.
setFarClipDistance( 1200 ) outputDebugString( "Render distance: " .. getFarClipDistance( ) ) resetFarClipDistance( ) outputDebugString( "New render distance: " .. tostring( getFarClipDistance( ) ) )
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