Comrades in Arms Discussion Board

Full Version: setFog array JIP script.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Wrote a script to utilize the new fog system that's JIP compatible.

You simply call it in init.sqf with [[StartDensity,EndDensity], Decay, Altitude, Time in minutes for changes to take effect]. So for example [[.65, .40], .010, 55, 60] execVM "Fog.sqf"; would start with a fog density of .65 with a decay of .010 and an altitude of 55 meters and gradually decrease to a fog density of .40 over 60 minutes.

*quick update to prevent client code from running on the server*

*another small update to fix a typo preventing the script from running*

* New version, somehow an older non working version got placed in the zip.*
Great! Now we all can have the same fog.
can u zip this script as .rar or .zip
I can't unzip it with winrar software.
* .7z is difference with other zip files?
(07-09-2014, 07:02 PM)Persian MO link Wrote: [ -> ]can u zip this script as .rar or .zip
I can't unzip it with winrar software.
* .7z is difference with other zip files?
Persian install 7z. it's the best and can open all types.
I downloaded the 7z but it can't open the fog script.Give me a error same like other software's.Can someone check it out and let me know if i'm wrong ?
The .zip file is corrupt.
I'll ask Windies to re-upload the file.
uploaded a copy from my google drive. 7zip opened it fine.