ResetFogDistance: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "__NOTOC__ {{Server client function}}  ==Syntax== <syntaxhighlight lang="lua"> bool resetFogDistance () </syntaxhighlight>")  | 
				 ("Added" resetFogDistance( ) function page)  | 
				||
| Line 1: | Line 1: | ||
{{Server client function}}  | |||
__NOTOC__  | __NOTOC__  | ||
{{  | This function resets the fog render distance to its default state.  | ||
{{Note|The function will reset the fog render distance to ''false'' server-side, as there is no default value to begin with.}}  | |||
==Syntax==  | |||
<syntaxhighlight lang="lua">  | |||
bool resetFogDistance ( )  | |||
</syntaxhighlight>  | |||
===Returns===  | |||
Returns ''true'' if operation was successful, ''false'' otherwise.  | |||
==  | ==Example==    | ||
This example will demonstrate basic functionality of the function.  | |||
<syntaxhighlight lang="lua">  | <syntaxhighlight lang="lua">  | ||
setFogDistance( 500 )  | |||
outputDebugString( "Fog render distance: " .. getFogDistance( ) )  | |||
resetFogDistance( )  | |||
outputDebugString( "New fog render distance: " .. tostring( getFogDistance( ) ) )  | |||
</syntaxhighlight>  | </syntaxhighlight>  | ||
==See Also==  | |||
{{World_functions}}  | |||
Latest revision as of 13:17, 3 August 2014
This function resets the fog render distance to its default state.
Syntax
bool resetFogDistance ( )
Returns
Returns true if operation was successful, false otherwise.
Example
This example will demonstrate basic functionality of the function.
setFogDistance( 500 ) outputDebugString( "Fog render distance: " .. getFogDistance( ) ) resetFogDistance( ) outputDebugString( "New fog render distance: " .. tostring( getFogDistance( ) ) )
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