DCS func setFogThickness

From DCS World Wiki - Hoggitworld.com
Revision as of 04:03, 2 December 2024 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: