DCS func setFogThickness

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: setFogThickness Added with: 2.9.10
Member Of: world.weather
Syntax: world.weather.setFogThickness(number thiccness )
Description: Sets the fog to the desired thickness in meters at sea level. Any fog animation will be discarded.

Valid range : 100 to 5000

If 0 is passed to the function the fog will be removed.


Return Value:
Return Example:
Examples: The following sets the fog to a random value between 1000 and 3000 meter visibility.
   world.weather.setFogThickness(math.random(1000, 3000))
Related Functions: World Functions: addEventHandler, removeEventHandler, getPlayer, getAirbases, searchObjects, getMarkPanels, removeJunk

world.weather getFogThickness, setFogThickness, getFogVisibilityDistance, setFogVisibilityDistance, setFogAnimation

Notes: