zodd 14 Posted December 10, 2011 This is my first attempt at a script so its leaves a lot to be desired but I think a good base. Hopefully it is of use to someone and also - if some experienced scripters can offer some advice it would be appreciated! dfsw.sqf script: // // dfsw.sqf // // BASIC DIRECT FIRE SUPPORT WEAPON SCRIPT // DESIGNED FOR 2 GUNS AT ONE TARGET // GUN 2 FIRING OFFSET TO GUN 1 // DOES NOT INCORPORATE BEATEN ZONE // // BY ZODD - 10 DEC 11 // //Inspired by INKO SFS (http://forums.bistudio.com/showthread.php?t=83797) //And F2KSel (http://forums.bistudio.com/showthread.php?t=127189) // // ---USAGE--- // CALLED BY: // firemsn1 =[gun1, gun2, number of bursts, length of burst in rounds, time between main gun bursts, target] execVM "dfsw.sqf"; // _g1 = _this select 0; _g2 = _this select 1; _bursts = _this select 2; _rounds = _this select 3; _lulltime = _this select 4; _tgt = _this select 5; //START _g1 doWatch _tgt; //ASSIGN TARGET TO BOTH GUNS _g2 doWatch _tgt; sleep 3; //ALLOW TIME TO ALIGN for "_i" from 1 to _bursts do { for "_i" from 0 to _rounds do //FIRE A BURST THE LENGTH OF 'ROUNDS' { sleep 0.1; _g1 action ["useweapon",_g1,_g1 turretunit [0],0]; }; sleep (_lulltime/2); //WAIT HALF THE LULL TIME (SO GUN 2 FIRES OFFSET TO GUN 1) for "_i" from 0 to _rounds do //SAME AGAIN { sleep 0.1; _g2 action ["useweapon",_g2,_g2 turretunit [0],0] }; sleep (_lulltime/2); _g1 setVehicleAmmo 1; //IF YOU DONT WANT UNLIMITED AMMO - COMMENT THESE TWO LINES OUT _g2 setVehicleAmmo 1; } Designed for a gun line of two weapons - works pretty well with static MGs. Next part will be to make a beaten zone instead of point target! Works well at short to medium ranges... unfortunately dowatch is the only command i can get to work (ie. not dotarget) so longer ranges will have rounds falling short. Workaround for this at the moment when going for a set engagement area is to put a target (by trial and error) somewhere that will make the rounds land where you need them. Enjoy if you can use - please give feedback if you have any!!! Share this post Link to post Share on other sites