Jump to content
Sign in to follow this  
mach1muscle351

An-2 Bomber/Crop duster?

Recommended Posts

this addMagazine "3Rnd_Mk82"; this addWeapon "Mk82BombLauncher";

AI isn't very good at all at using it, it tries to do an attack run at like 50ft or something and hits itself with it's ridiculously early drops. For grenades you'd need to fake it or something.

Share this post


Link to post
Share on other sites
this addMagazine "3Rnd_Mk82"; this addWeapon "Mk82BombLauncher";

AI isn't very good at all at using it, it tries to do an attack run at like 50ft or something and hits itself with it's ridiculously early drops. For grenades you'd need to fake it or something.

Just as long as it works fine with me flying it :) But what do you mean by fake it?

Share this post


Link to post
Share on other sites

foo = "Grenade" createVehicle position player;

Works best while flying! :)

Share this post


Link to post
Share on other sites

Create markers on your map where you want bombs/grenades to explode. Name them Marker1, Marker2, Marker3 ... As the An-2 flies over, make triggers that can be activated by the An-2. In the triggers init field put:

Bomb="3Rnd_Mk82" createVehicle getMarkerPos "Marker1"

or any other ordinance instead of Mk82. You will get explosions on the ground as the plane passes by

Share this post


Link to post
Share on other sites

Okay this is killing me, I keep messing around it. kylania, your code seems to work for the bombs. But the only issues is it explodes in the air. Also, I am trying to figure out how to drop the grenades while I am flying it anywhere I chose from.

Share this post


Link to post
Share on other sites

Solution we just discovered:

init of plane:

this addAction ["Release CS Gas","an2CS.sqf",[],1,false,true,"","(driver _target == _this)"];

an2CS.sqf:

_plane = _this select 0;
_pilot = _this select 1;

_obj = "ACE_M7A3" createVehicle position _plane;  
[_pilot, "", "", "", typeOf _obj, "", _obj] call SLX_XEH_EH_Fired;

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  

×