Search the Community
Showing results for tags 'ambient artillery fire'.
Found 1 result
-
[Release] GOM_fnc_ambientArtilleryFire V1.2
Grumpy Old Man posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
GOM_fnc_ambientArtilleryFire V1.2 Purpose of this script: Gives mission makers access to simple ambient artillery units that fire just for decorative purposes into random directions. Features: Dedi and local MP compatible Takes pre placed vehicles and uses their main guns to engage artillery fire at simulated targets for the given salvo/rounds number. Works fine with with vanilla artillery assets and multiple third party vehicles. It's also possible to immediately stop the script and free up all units to fire on actual threats, so you can use the same units for the vanilla artillery support module/other arty scripts. How to use this script: At first copy the spoiler contents into a file inside your mission folder and name it accordingly. init.sqf: _initAmbientArty = [] execVM "scripts\GOM\ambient\GOM_fnc_ambientArtilleryFire.sqf"; scripts\GOM\ambient\GOM_fnc_ambientArtilleryFire.sqf: In the editor: Place few grouped or ungrouped artillery units put the following into their init fields: this setVariable ["GOM_fnc_ambientArtyBatteryID","Battery01",true]; _fire = ["Battery01",3,4] spawn GOM_fnc_ambientArtilleryFire This will make arty guns assigned to "Battery01" fire 3 salvoes with 4 rounds each. Parameters: _battery = "Battery01"; //battery ID assigned through objects init field _salvoes = 3; //(OPTIONAL) how many salvoes will be fired _rounds = 6; //(OPTIONAL) rounds per salvo _debug = false; //(OPTIONAL) displays debug messages _fire = [_battery,_salvoes,_rounds] spawn GOM_fnc_ambientArtilleryFire To abort the script simply call GOM_fnc_abortAmbientArtilleryFire wherever you like. _abort = [] call GOM_fnc_abortAmbientArtilleryFire; By executing the script again guns will fire as usual. For best effect place multiple groups executing the code simultaneously, this way you'll get multiple groups firing at multiple simulated targets. Known Issues: None so far. Changelog: V1.2: Made script local MP and dedi compatible Improved firing Arc Improved projectile deletion Guns are now assigned to batteries to allow multiple batteries for ambient artillery fire SP Demo Mission Enjoy!