Jump to content
Sign in to follow this  
mpreuett

Custom weapon loadout for planes

Recommended Posts

Greetings folks, I've searched the forums here and culled together some information on custome weapon loadouts for vehicles, but I must be getting something wrong somewhere.

I'm wanting to put an init line in vehicles that looks like this:

[this] execVM "loadouts\a10.sqf"

and my script looks like this:

_vehicle = _this select 0;

removeAllWeapons _vehicle;

_vehicle addweapon "Mk82BombLauncher_6";

_vehicle addMagazine "6Rnd_Mk82";

Shouldn't this simply remove all weapons and add just the mk82 launcher and one six round magazine when the vehicle is first initialized? I must be missing something simple here. Can anyone offer some assistance? This is for OA if that makes a difference.

Thanks in advance.

EDIT: Figured it out.

Edited by mpreuett
Solved

Share this post


Link to post
Share on other sites

I've been able to add custom loadouts to an a-10, but i'm trying the following for an F35, but just can't get it to work. Any suggestions?

_vehicle = _this select 0;

_type = typeOf vehicle _vehicle;

if (_type == "F35B") then

{

_weapons = weapons _vehicle;

_vehicle addMagazine "12Rnd_Vikhr_KA50";

_vehicle addMagazine "12Rnd_Vikhr_KA50";

_vehicle addMagazine "12Rnd_Vikhr_KA50";

_vehicle addMagazine "12Rnd_Vikhr_KA50";

_vehicle addMagazine "12Rnd_Vikhr_KA50";

_vehicle addMagazine "12Rnd_Vikhr_KA50";

if(not ("VikhrLauncher" in _weapons)) then {_vehicle addweapon "VikhrLauncher"};

};

Share this post


Link to post
Share on other sites

Try this:

{this addMagazineTurret ["12Rnd_Vikhr_KA50",[-1]];} forEach [1,2,3];

Example:

A-10 CAS Loadout

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.

Code:

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";

Share this post


Link to post
Share on other sites

@ Pelham:

I just used that code in your last post to replace 1 of my A10 GBU's in domination into an A10 wich now has 6 mavericks and 2 Sidewinders.

Gonna try that Vikhr's version later aswell.

But is there a way to change the GAU 8 with the Wildcat MG Ammunition?

And if possible, what's the code for it?

I think the GAU 8 ammo is'nt as good as the Wildcat's MG when it comes to ground attacks on enemy infantry.

Greetz, Milan.

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  

×