DCS func setFogVisibilityDistance

From DCS World Wiki - Hoggitworld.com

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: