Difference between revisions of "DCS func setFogThickness"

From DCS World Wiki - Hoggitworld.com
(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...")
 
 
Line 5: Line 5:
 
|vNum= 2.9.10
 
|vNum= 2.9.10
  
|par1= [[DCS_singleton_world|world]]
+
|par1= [[DCS_singleton_world|world.weather]]
  
 
|par2=  
 
|par2=  

Latest revision as of 04:03, 2 December 2024

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: