Im having a small issue with an addaction script im using. I set up an addaction in my scenario and i also want the arsenal that it brings up to be whitelisted with gear i pick. Whenever i use the addaction i made it give a separate action for the arsenal itself and i dont want this i want it to be executed through the addaction i setup. all the current gear i have in the script right now is just a placeholder.
Action:
player addaction ["<t size='1.4' shadow='2' color='#AABEA5'>Armory</t>", "vanillaArsenal.sqf", [], 1, true, true, "","([base] findIf {player distance _x < 50}) > -1"];
arsenal script/vanillaArsenal.sqf:
_availableHeadgear = [
"H_Booniehat_khk_hs",
"H_HelmetB_plain_mcamo"
];
_availableGoggles = [
"G_Bandanna_blk",
"G_Bandanna_oli"
];
_availableUniforms = [
"U_B_CTRG_1",
"U_I_G_Story_Protagonist_F"
];
_availableVests = [
"V_BandollierB_cbr",
"V_PlateCarrier1_rgr"
];
_availableBackpacks = [
"B_Kitbag_rgr",
"B_TacticalPack_mcamo"
];
_nvgoggles = [
"NVGoggles",
"Integrated_NVG_F"
];
_gunz = [
"arifle_MX_F",
"arifle_TRG21_F"
];
_mainattachments = [
"optic_Hamr",
"optic_Arco"
];
_seconattachments = [
"muzzle_snds_H",
"muzzle_snds_H_MG"
];
_miscshit = [
"ItemWatch",
"ItemCompass"
];
_magazines = [
"30Rnd_65x39_caseless_mag",
"30Rnd_556x45_Stanag"
];
//Populate with predefined items and whatever is already in the crate
[player,((backpackCargo player) + _availableBackpacks)] call BIS_fnc_addVirtualBackpackCargo;
[player,((itemCargo player) + _availableHeadgear + _availableGoggles + _availableUniforms + _availableVests + _nvgoggles + _mainattachments + _seconattachments + _miscshit)] call BIS_fnc_addVirtualItemCargo;
[player,(magazineCargo player + _magazines)] call BIS_fnc_addVirtualMagazineCargo;
[player,((weaponCargo player) + _gunz)] call BIS_fnc_addVirtualWeaponCargo;