Jump to content
Sign in to follow this  
Craig Tilyard

Calling scripts to apply different load outs on AH-64D

Recommended Posts

I'm looking to give my pilots on my server the abiltity to apply custom load outs to an AH-64D by calling different scripts.

With this script their are different load outs but I could only get them to work whilst in the editor and not through an action menu in game

// nul = [this,"HellfireOnly"] execVM "apacheLoadout.sqf";

// Valid loadout types: "HellfireOnly", "FFAROnly", "FFARAA", "Maverick"

private["_air","_loadout"];

_air = _this select 0;

_loadout = _this select 1;

switch (toUpper(_loadout)) do {

case "HELLFIREONLY": {

// Hellfire Only

_air removeMagazinesTurret ["38Rnd_FFAR",[0]];

_air removeWeapon "FFARLauncher";

_air addMagazineTurret ["8Rnd_Hellfire",[0]];

};

case "FFARONLY": {

// FFAR Only

_air removeMagazinesTurret ["8Rnd_Hellfire",[0]];

_air removeWeapon "HellfireLauncher";

_air addMagazineTurret ["38Rnd_FFAR",[0]];

};

case "FFARAA": {

// FFAR/AA

_air removeMagazinesTurret ["8Rnd_Hellfire",[0]];

_air removeWeapon "HellfireLauncher";

_air addMagazineTurret ["38Rnd_FFAR",[0]];

_air addWeapon "SidewinderLaucher_AH64";

_air addMagazineTurret ["8Rnd_Sidewinder_AH64",[0]];

};

case "MAVERICK": {

// Mavericks

_air removeMagazinesTurret ["8Rnd_Hellfire",[0]];

_air removeWeapon "HellfireLauncher";

_air addWeapon "MaverickLauncher";

{_air addMagazineTurret ["2Rnd_Maverick_A10",[0]];} forEach [1,2,3,4];

};

};

I'd like to have them have an action menu command when engines are off/on the ground inside a trigger which allows them to load out "Maverick" or switch to "Hellfireonly"

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  

×