DCS func setFogVisibilityDistance: Difference between revisions

From DCS World Wiki - Hoggitworld.com
Created page with "{{Template:dcs_funcs |fName= setFogVisibilityDistance |vNum= 2.9.10 |par1= world.weather |par2= |par3= |par4= |desc= Sets the maximum visibili..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
Limit: 100  to 100000
Limit: 100  to 100000


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


|rtnType=  
|rtnType=  
Line 22: Line 23:
|rtnExample=  
|rtnExample=  


|reqType1=  
|reqType1= number


|reqName1=  
|reqName1= visibility


|reqType2=  
|reqType2=  

Latest revision as of 04:51, 2 December 2024

Scripting Root

Envrioment: Mission Scripting
Function: setFogVisibilityDistance Added with: 2.9.10
Member Of: world.weather
Syntax: world.weather.setFogVisibilityDistance(number visibility )
Description: Sets the maximum visibility at sea level in meters.

Limit: 100 to 100000

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


Return Value:
Return Example:
Examples:
Related Functions: World Functions: addEventHandler, removeEventHandler, getPlayer, getAirbases, searchObjects, getMarkPanels, removeJunk

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

Notes: