Author: Phoenix_ZA
Author Website: http://zulu-alpha.co.za

Requirements: No addons required

Version: 1.0

Short description: Returns the view distance factoring in improved A3 fog for the given elevation

Date: 2014-07-04 03:18


Comments: (0)
Rating:



 



View distance due to fog

by
Phoenix of Zulu-Alpha


Description:
Returns the view distance factoring in improved A3 fog for the given elevation.


Features:
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.


License:
APL-SA: http://www.bistudio.com/english/community/licenses/arma-public-license-share-alike


Credits & Thanks:
References:
https://resources.bisimulations.com/w/index.php?title=setFog
https://community.bistudio.com/wiki/Arma_3_Improved_Fog


Change log:
v1.0
- First release


Forums Topic:
- BI Forums




Enable javascript to be able to download from Armaholic please!