Jump to content
Sign in to follow this  
dimdic

how can i make a fighter aircraft fire its canon at a specific ground position ??

Recommended Posts

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

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

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
#check

man 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

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

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 by F2k Sel

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×