Returns the view distance factoring in improved A3 fog for the given elevation.
Takes in the elevation (ASL and in meters) in question and returns the view distance factoring in improved A3 fog for the given elevation in meters.
Installation / Usage:
Copy to your root mission folder and use. Otherwise you can use the script however or wherever you like as it's self contained.
viewDistance_fog = (getPosASL player select 2) call compile preProcessFilelinenumbers "fn_zam_getFogViewDistance.sqf";to get the view distance. Change out "(getPosASL player select 2)" for whatever elevation you want.
Credits & Thanks:
- First release
- BI Forums