DCS func setFogThickness

From DCS World Wiki - Hoggitworld.com
Revision as of 03:58, 2 December 2024 by Grimes (talk | contribs) (Created page with "{{Template:dcs_funcs |fName= setFogThickness |vNum= 2.9.10 |par1= world |par2= |par3= |par4= |desc= Sets the fog to the desired thickness in m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: setFogThickness Added with: 2.9.10
Member Of: world
Syntax: world.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: