SetFogDistance: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server client function}} ==Syntax== <syntaxhighlight lang="lua"> bool setFogDistance ( float distance ) </syntaxhighlight>") |
Dmitry7zip (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
{{Server client function}} | |||
__NOTOC__ | |||
This function changes the visible distance of fog. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setFogDistance ( float distance )</syntaxhighlight> | |||
===Returns=== | |||
Returns a ''bool''. | |||
==Example== | |||
<section name="Server and Client" class="both" show="true"> | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function fogdistance ( ) | |||
setFogDistance(1.0) | |||
end | |||
addCommandHandler ( "fog", fogdistance ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==See Also== | |||
{{World functions}} | |||
[[ru:getGameSpeed]] |
Revision as of 10:11, 8 November 2013
This function changes the visible distance of fog.
Syntax
bool setFogDistance ( float distance )
Returns
Returns a bool.
Example
Click to collapse [-]
Server and Clientfunction fogdistance ( ) setFogDistance(1.0) end addCommandHandler ( "fog", fogdistance )
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