dimdic 1 Posted July 4, 2012 Hi there! I want a fighter aircraft pass above a specific position and fire its canon there !! Thank you. Share this post Link to post Share on other sites
yoannis1995 10 Posted July 5, 2012 I don't really know if there's another possibility than use the unitCapture and unitPlay commands... ?! Share this post Link to post Share on other sites
yoannis1995 10 Posted July 9, 2012 I tried that: _avion = _this select 0; _cible = _this select 1; _pilot = driver _avion; _avion doMove (position _cible); _pilot doMove (position _cible); sleep 1; waitUntil {(_avion distance _cible) < 300}; sleep 1; _avion selectWeapon "GAU8"; _avion doTarget _cible; _avion doWatch _cible; _pilot doTarget _cible; _pilot doWatch _cible; sleep 1; _avion doFire _cible; _pilot doFire _cible; _avion fire "GAU8"; _pilot fire "GAU8"; but it doesn't work.... :/ Share this post Link to post Share on other sites
killerwhale 1 Posted July 16, 2012 #checkman selectweapon"GAU8" man lookAt target man dotarget target goto"check" man dofire target man fire"GAU8" this is what I use but the plane has to be within sight of target, so use a trigger to run it as a script or else it will fire its rounds even when its out of its sight Share this post Link to post Share on other sites
yoannis1995 10 Posted July 17, 2012 Well I tried that: _avion = _this select 0; _cible = _this select 1; _pilot = driver _avion; _groupe = group _pilot; _wp = _groupe addWaypoint [position _cible, 0]; _wp setWaypointType "DESTROY"; _pilot reveal [_cible, 4]; sleep 2; waitUntil { (_pilot distance _cible) < 400}; _pilot selectweapon "GAU8"; _pilot lookAt _cible; _pilot doTarget _cible; _pilot dofire _cible; _pilot fire "GAU8"; But it still doesn't work :/ Share this post Link to post Share on other sites
f2k sel 164 Posted July 17, 2012 (edited) To fire the weapon is quite easy. null = plane fireattarget [target,"GAU8"]; The problem is if the gun isn't on a turret the pilot will never line the plane up to use the gun accurately, it will just fire a burst. Also I don't think the DESTROY watpoint will do what you want. I think it works more like Waituntil Destroyed I've cobbled up a way to do it. The plane will fly in and take out the fuel tank to the left of the street light. http://www.sendspace.com/file/hvh88g Edited July 18, 2012 by F2k Sel Share this post Link to post Share on other sites
mikie boy 18 Posted July 18, 2012 Pelham created a script with fake firing - basically the plane flew over and then the cannons would fire (well the sound would play) but it was just create the damage on the target using "B_30mmA10_AP" - utilising shk_pos. works well :) Share this post Link to post Share on other sites