Cockheaven 21 Posted November 21, 2019 Hi guys, I had been putting together a kit for my community to standardize missions and part of that kit incorporated standard unit loadouts in the ace arsenal. To achieve this @Mr H. helped me with creating and extracting loadouts and inputting them in objects that are enabled as ace arsenals. Object init Spoiler this spawn {waitUntil{!isNil 'ACE_ArsenalAllowedItems'};[_this,ACE_ArsenalAllowedItems,true] call ace_arsenal_fnc_initBox}; Init.sqf and or initserver.sqf Spoiler [] execVM "56RDLoadOuts.sqf"; 56RDLoadOuts.sqf Spoiler //-----------Load Outs-----------// _allLoadOuts = [ //-----Platoon-----// ["56RD MTP Commander",[[],[],["hgun_Pistol_heavy_01_F","","acc_flashlight_pistol","optic_MRD",["11Rnd_45ACP_Mag",11],[],""],["U_B_CombatUniform_mcam_tshirt",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrierSpec_mtp",[["SmokeShellPurple",10,1],["11Rnd_45ACP_Mag",3,11],["CUP_HandGrenade_M67",2,1],["immersion_pops_poppack",3,1],["murshun_cigs_cigpack",1,20],["murshun_cigs_lighter",1,100]]],["tf_rt1523g",[]],"H_MilCap_mcamo","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152_1","ItemCompass","tf_microdagr","NVGogglesB_grn_F"]]], //-----Squad_Leader-----// ["56RD MTP Squad Leader 6.5",[["arifle_MX_Black_F","","acc_pointer_IR","optic_Hamr",["30Rnd_65x39_caseless_black_mag",30],[],"bipod_01_F_blk"],[],[],["U_B_CombatUniform_mcam",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrierSpec_mtp",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["30Rnd_65x39_caseless_black_mag",6,30]]],["tf_rt1523g",[["3Rnd_HE_Grenade_shell",4,3]]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]], //-----Team_Leader-----// ["56RD MTP Team Leader 6.5",[["arifle_MX_GL_Black_F","","acc_pointer_IR","optic_Hamr",["30Rnd_65x39_caseless_black_mag",30],["3Rnd_HE_Grenade_shell",3],""],[],[],["U_B_CombatUniform_mcam",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrierGL_mtp",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["30Rnd_65x39_caseless_black_mag",6,30],["3Rnd_HE_Grenade_shell",2,3]]],["B_AssaultPack_mcamo",[]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]], //-----Autorifleman-----// ["56RD MTP Autorifleman 6.5",[["arifle_MX_SW_Black_F","","acc_pointer_IR","optic_Hamr",["100Rnd_65x39_caseless_black_mag",100],[],"bipod_01_F_blk"],[],[],["U_B_CombatUniform_mcam_tshirt",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrier1_rgr",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["100Rnd_65x39_caseless_black_mag",4,100]]],["B_AssaultPack_mcamo",[["ACE_EarPlugs",1]]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]], //-----Ammo_Bearer-----// ["56RD MTP Ammo_Bearer 6.5",[["arifle_MX_Black_F","","acc_pointer_IR","optic_Hamr",["30Rnd_65x39_caseless_black_mag",30],[],"bipod_01_F_blk"],[],[],["U_B_CombatUniform_mcam",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrier1_rgr",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["30Rnd_65x39_caseless_black_mag",10,30]]],["B_Carryall_mcamo",[["30Rnd_65x39_caseless_black_mag",20,30],["100Rnd_65x39_caseless_black_mag",4,100],["SmokeShellPurple",5,1]]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]], //-----Medic-----// ["56RD MTP Medic 6.5",[["arifle_MXC_Black_F","","acc_pointer_IR","optic_Hamr",["30Rnd_65x39_caseless_black_mag",30],[],""],[],[],["U_B_CombatUniform_mcam",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrierSpec_mtp",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["30Rnd_65x39_caseless_black_mag",6,30]]],["B_AssaultPack_mcamo",[["ACE_fieldDressing",35],["ACE_epinephrine",10],["ACE_morphine",10],["ACE_tourniquet",5],["ACE_bloodIV",8],["SmokeShellPurple",5,1]]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]], //-----Rifleman_AT-----// ["56RD MTP Light AT 6.5",[["arifle_MX_Black_F","","acc_pointer_IR","optic_Hamr",["30Rnd_65x39_caseless_black_mag",30],[],"bipod_01_F_blk"],["CUP_launch_M136","","","",["ACE_PreloadedMissileDummy_CUP",1],[],""],[],["U_B_CombatUniform_mcam",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrier2_rgr",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["30Rnd_65x39_caseless_black_mag",10,30]]],["B_AssaultPack_mcamo",[["ACE_EarPlugs",1],[["CUP_launch_M136","","","",[],[],""],1]]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]], //-----Rifleman-----// ["56RD MTP Rifleman 6.5",[["arifle_MX_Black_F","","acc_pointer_IR","optic_Hamr",["30Rnd_65x39_caseless_black_mag",30],[],"bipod_01_F_blk"],[],[],["U_B_CombatUniform_mcam",[["ACE_CableTie",2],["ACE_EarPlugs",1],["ACE_morphine",5],["ACE_fieldDressing",19],["ACE_Flashlight_XL50",1],["ACE_tourniquet",2],["ACE_bloodIV",1]]],["V_PlateCarrier2_rgr",[["SmokeShellPurple",5,1],["HandGrenade",2,1],["30Rnd_65x39_caseless_black_mag",10,30]]],["B_AssaultPack_mcamo",[]],"H_HelmetSpecB_snakeskin","",["Binocular","","","",[],[],""],["ItemMap","ItemGPS","tf_anprc152","ItemCompass","ItemWatch","NVGogglesB_grn_F"]]] ]; //----------LoadOuts End----------// //-------add loadouts to ace default------ {[_x select 0,_x select 1] call ace_arsenal_fnc_addDefaultLoadout}forEach _allLoadOuts; //Copy and Paste the line below into your ingame arsenals to restrict items to those listed in the array ACE_ArsenalAllowedItems =["hgun_Pistol_heavy_01_F","acc_flashlight_pistol","optic_MRD","11Rnd_45ACP_Mag","U_B_CombatUniform_mcam_tshirt","ACE_CableTie","ACE_EarPlugs","ACE_morphine","ACE_fieldDressing","ACE_Flashlight_XL50","ACE_tourniquet","ACE_bloodIV","V_PlateCarrierSpec_mtp","SmokeShellPurple","CUP_HandGrenade_M67","immersion_pops_poppack","murshun_cigs_cigpack","murshun_cigs_lighter","tf_rt1523g","H_MilCap_mcamo","Binocular","ItemMap","ItemGPS","tf_anprc152_1","ItemCompass","tf_microdagr","NVGogglesB_grn_F","arifle_MX_Black_F","acc_pointer_IR","optic_Hamr","30Rnd_65x39_caseless_black_mag","bipod_01_F_blk","U_B_CombatUniform_mcam","HandGrenade","3Rnd_HE_Grenade_shell","H_HelmetSpecB_snakeskin","tf_anprc152","ItemWatch","arifle_MX_GL_Black_F","V_PlateCarrierGL_mtp","B_AssaultPack_mcamo","arifle_MX_SW_Black_F","100Rnd_65x39_caseless_black_mag","V_PlateCarrier1_rgr","B_Carryall_mcamo","arifle_MXC_Black_F","ACE_epinephrine","CUP_launch_M136","ACE_PreloadedMissileDummy_CUP","V_PlateCarrier2_rgr"]; This is no longer working, we had a few weeks of success and it was great, nothing was changed on our end however the script for the loadouts is not being called. I can run null = execvm "56RDLoudouts.sqf" in game and it puts the loadouts in the "default loadouts" in the ace arsenal, what gives? Share this post Link to post Share on other sites
Mr H. 402 Posted November 21, 2019 I'm pretty sure this should run everywhere so call it from init.sqf not initserver. I'll have a look later today on my end. Share this post Link to post Share on other sites
Cockheaven 21 Posted November 24, 2019 @Mr H. any updates sir? I would like to spend some time investigating this myself but school is kicking my ass right now, any help is much appreciated. Share this post Link to post Share on other sites
Mr H. 402 Posted November 25, 2019 I have tested on my end and it works fine. Might be something else on your end conflicting with the script ? 1 Share this post Link to post Share on other sites