This script requires Operation Arrowhead Beta 1.52.71816 or later to function!
mercyne on the BIS forums wanted a CAS based A-10 loadout with GAU-8, FFARs and 8 Hellfires. Here’s how to do that with the new removeMagazinesTurret commands.
this removeMagazinesTurret ["4Rnd_GBU12",[-1]]; this removeMagazinesTurret ["2Rnd_Sidewinder_AH1Z",[-1]]; {this addMagazineTurret ["2Rnd_Maverick_A10",[-1]];} forEach [1,2,3]; this removeWeapon "BombLauncherA10"; this removeWeapon "SidewinderLaucher_AH1Z";
The above code, placed in your A-10’s init field, will remove the empty weapon options and all the Mavericks will properly be displayed in their weapon proxies. The [-1] in the removeMagazineTurret commands is the driver’s turret.
The A-10 has proxies for up for 8 weapons (the FFAR pods are not removable). You can add more than 8, but they’ll appear from under the airframe rather than be attached to pods.
The BIS Wiki has a list of weapon classnames to use.
Here are some other options for other vehicles.
ACR Alca with 6x GBU-12s and the cannon:
this removeMagazinesTurret ["4Rnd_Maverick_L159",[-1]]; this removeMagazinesTurret ["2Rnd_Sidewinder_AH1Z",[-1]]; this addMagazineTurret ["6Rnd_GBU12_AV8B",[-1]]; this addWeapon "BombLauncher"; this removeWeapon "MaverickLauncher_ACR"; this removeWeapon "SidewinderLaucher_AH1Z";
Mi-24D Hind with Sidewinders instead of Falangas:
this removeMagazinesTurret ["4Rnd_AT2_Mi24D",[0]]; this removeWeapon "AT2Launcher"; this addMagazineTurret ["4Rnd_Sidewinder_AV8B",[0]]; this addWeapon "SidewinderLaucher";