Sweet! I checked that info in the ACE wiki and got it working with no problems.
However, I'm still having issues with the carpet bombing. Mando, do you HAVE to include this code in your init.sqf to make the carpet bombing work?
// Carpet bombing custom code global variable for AV8B
mando_airsupport_carpetcode =
{
private["_plane", "_targetpos"];
_plane = _this select 0;
_targetpos = _this select 1;
// Wait until horizontal distance between plane and target position is < 2000m or until plane is destroyed
while {(([getPos _plane select 0, getPos _plane select 1, 0] distance _targetpos) > 2000) && (alive _plane)} do
{
Sleep 1;
};
// If the plane is alive, it drops 6 bombs in sequence.
if (alive _plane) then
{
for [{_i=0}, {_i<6}, {_i=_i+1}] do
{
// A bomb is dropped, index 0 is for LGBs in the AV8B, if you change the plane type, set here the correct weapon index for bombs
_plane action ["useWeapon",_plane,driver _plane,0];
Sleep 0.4;
};
};
};
As always, any help is greatly appreciated.