jordanbache97 47 Posted September 24, 2015 Hey guys Here I have a Virtual arsenal script for my unit it was working fine untill today and nothing has changed but I cant seem to access any backpacks Here is the Init I put into the Object :this enableSimulation false;this setdir 250.442;this setposATL [5043.474121,1387.465454,0];this setVectorUp [0,0,1]; this addAction ["Open Virtual Arsenal", {null = [_this] execVM 'virtual_arsenal_init.sqf'}]; And here is what is in the Virtual_arsenal_init.sqf : //virtual_arsenal_init.sqf _crate = _this select 0 select 0; _caller = _this select 0 select 1; _id = _this select 0 select 2; _crate removeAction _id; clearMagazineCargoGlobal _crate; clearWeaponCargoGlobal _crate; clearItemCargoGlobal _crate; clearBackpackCargoGlobal _crate; ["AmmoboxInit",[_crate,false,{true}]] spawn BIS_fnc_arsenal; //Lists of items to include _availableHeadgear = [ "UK3CB_BAF_H_CrewHelmet_A", "UK3CB_BAF_H_CrewHelmet_A_ESS_A", "UK3CB_BAF_H_Mk7_Camo_A", "UK3CB_BAF_H_Mk7_Camo_B", "UK3CB_BAF_H_Mk7_Camo_C", "UK3CB_BAF_H_Mk7_Camo_D", "UK3CB_BAF_H_Mk7_Camo_E", "UK3CB_BAF_H_Mk7_Camo_F", "UK3CB_BAF_H_Mk7_Camo_ESS_A", "UK3CB_BAF_H_Mk7_Camo_ESS_B", "UK3CB_BAF_H_Mk7_Camo_ESS_C", "UK3CB_BAF_H_Mk7_Camo_ESS_D", "UK3CB_BAF_H_Mk7_Camo_CESS_A", "UK3CB_BAF_H_Mk7_Camo_CESS_B", "UK3CB_BAF_H_Mk7_Camo_CESS_C", "UK3CB_BAF_H_Mk7_Camo_CESS_D", "UK3CB_BAF_H_Mk7_Net_A", "UK3CB_BAF_H_Mk7_Net_B", "UK3CB_BAF_H_Mk7_Net_C", "UK3CB_BAF_H_Mk7_Net_D", "UK3CB_BAF_H_Mk7_Net_ESS_A", "UK3CB_BAF_H_Mk7_Net_ESS_B", "UK3CB_BAF_H_Mk7_Net_ESS_C", "UK3CB_BAF_H_Mk7_Net_ESS_D", "UK3CB_BAF_H_Mk7_Net_CESS_A", "UK3CB_BAF_H_Mk7_Net_CESS_B", "UK3CB_BAF_H_Mk7_Net_CESS_C", "UK3CB_BAF_H_Mk7_Net_CESS_D", "UK3CB_BAF_H_Mk7_Scrim_A", "UK3CB_BAF_H_Mk7_Scrim_B", "UK3CB_BAF_H_Mk7_Scrim_C", "UK3CB_BAF_H_Mk7_Scrim_D", "UK3CB_BAF_H_Mk7_Scrim_E", "UK3CB_BAF_H_Mk7_Scrim_F", "UK3CB_BAF_H_Mk7_Scrim_ESS_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_B", "UK3CB_BAF_H_PilotHelmetHeli_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_C", "UK3CB_BAF_H_Headset_PRR" ]; _availableGoggles = [ "UK3CB_BAF_G_Tactical_Black", "UK3CB_BAF_G_Tactical_Clear", "UK3CB_BAF_G_Tactical_Grey", "UK3CB_BAF_G_Tactical_Orange", "UK3CB_BAF_HMNVS", "UK3CB_BAF_G_Tactical_Yellow" ]; _availableUniforms = [ "UK3CB_BAF_U_CombatUniform_MTP", "UK3CB_BAF_U_CombatUniform_MTP_RM", "UK3CB_BAF_U_CombatUniform_MTP_ShortSleeve", "UK3CB_BAF_U_CombatUniform_MTP_ShortSleeve_RM", "UK3CB_BAF_U_CrewmanCoveralls_RTR", "UK3CB_BAF_U_HeliPilotCoveralls_RAF", "UK3CB_BAF_U_HeliPilotCoveralls_RN" ]; _availableVests = [ "UK3CB_BAF_V_Osprey", "UK3CB_BAF_V_Osprey_Belt_A", "UK3CB_BAF_V_Osprey_Grenadier_A", "UK3CB_BAF_V_Osprey_Grenadier_B", "UK3CB_BAF_V_Osprey_Holster", "UK3CB_BAF_V_Osprey_Marksman_A", " UK3CB_BAF_V_Osprey_Medic_A", "UK3CB_BAF_V_Osprey_Medic_B", "UK3CB_BAF_V_Osprey_Medic_C", "UK3CB_BAF_V_Osprey_Medic_D", "UK3CB_BAF_V_Osprey_MG_A", "UK3CB_BAF_V_Osprey_MG_B", "UK3CB_BAF_V_Osprey_Rifleman_A", "UK3CB_BAF_V_Osprey_Rifleman_B", "UK3CB_BAF_V_Osprey_Rifleman_C", "UK3CB_BAF_V_Osprey_Rifleman_D", "UK3CB_BAF_V_Osprey_Rifleman_E", "UK3CB_BAF_V_Osprey_Rifleman_F", "UK3CB_BAF_V_Osprey_SL_A", "UK3CB_BAF_V_Osprey_SL_B", "UK3CB_BAF_V_Osprey_SL_C", "UK3CB_BAF_V_Osprey_SL_D", "V_HarnessO_brn", "V_Press_F", "Laserdesignator", "UK3CB_BAF_V_Pilot_A" ]; _availableItems = [ "ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_quikclot", "ACE_tourniquet", "ACE_atropine", "ACE_morphine", "ACE_epinephrine", "ACE_salineIV_250", "ACE_salineIV_500", "ACE_bloodIV_250", "ACE_personalAidKit", "ACE_surgicalKit", "ACE_bodyBag", "ACE_EarPlugs", "Laserbatteries", "B_UavTerminal" ]; _availableBackpacks = [ "UK3CB_BAF_B_Bergen_MTP_Engineer_H_A", "UK3CB_BAF_B_Bergen_MTP_Engineer_L_A", "UK3CB_BAF_B_Bergen_MTP_JTAC_H_A", "UK3CB_BAF_B_Bergen_MTP_JTAC_L_A", "UK3CB_BAF_B_Bergen_MTP_Medic_H_A", "UK3CB_BAF_B_Bergen_MTP_Medic_H_B", "UK3CB_BAF_B_Bergen_MTP_Medic_L_A", "UK3CB_BAF_B_Bergen_MTP_Medic_L_B", "UK3CB_BAF_B_Bergen_MTP_PointMan_H_A", "UK3CB_BAF_B_Bergen_MTP_PointMan_L_A", "UK3CB_BAF_B_Bergen_MTP_Radio_H_A", "UK3CB_BAF_B_Bergen_MTP_Radio_H_B", "UK3CB_BAF_B_Bergen_MTP_Radio_L_A", "UK3CB_BAF_B_Bergen_MTP_Radio_L_B", "UK3CB_BAF_B_Bergen_MTP_Rifleman_H_A", "UK3CB_BAF_B_Bergen_MTP_Rifleman_H_B", "UK3CB_BAF_B_Bergen_MTP_Rifleman_H_C", "UK3CB_BAF_B_Bergen_MTP_Rifleman_L_A", "UK3CB_BAF_B_Bergen_MTP_Rifleman_L_B", "UK3CB_BAF_B_Bergen_MTP_Rifleman_L_C", "UK3CB_BAF_B_Bergen_MTP_Rifleman_L_D", "UK3CB_BAF_B_Bergen_MTP_Sapper_H_A", "UK3CB_BAF_B_Bergen_MTP_Sapper_L_A", "UK3CB_BAF_B_Bergen_MTP_SL_H_A", "UK3CB_BAF_B_Bergen_MTP_SL_L_A" ]; _availableAttachments = [ "UK3CB_BAF_SpecterLDS_Dot", "UK3CB_BAF_SB31250", "UK3CB_BAF_SUSAT", "UK3CB_BAF_TA31F", "UK3CB_BAF_TA31F_Hornbill", "UK3CB_BAF_TA648", "UK3CB_BAF_SFFH", "UK3CB_BAF_LLM_IR_Tan", "UK3CB_BAF_BFA_L110", "UK3CB_BAF_BFA_L129", "UK3CB_BAF_BFA_L7", "UK3CB_BAF_BFA_L85", "UK3CB_BAF_LLM_Flashlight_Tan" ]; _availableMagazines = [ "UK3CB_BAF_30Rnd", "UK3CB_BAF_30Rnd_T", "UK3CB_BAF_100Rnd", "UK3CB_BAF_100Rnd_T", "UK3CB_BAF_200Rnd", "UK3CB_BAF_200Rnd_T", "UK3CB_BAF_20Rnd", "UK3CB_BAF_75Rnd", "UK3CB_BAF_75Rnd_T", "UK3CB_BAF_17Rnd_9mm", "UK3CB_BAF_L115A3_Mag", "UK3CB_BAF_L128A1_Pellets", "UK3CB_BAF_L128A1_Slugs", "UK3CB_BAF_30Rnd_Blank", "UK3CB_BAF_200Rnd_Blank", "UK3CB_BAF_75Rnd_Blank", "UK3CB_BAF_20Rnd_Blank", "SmokeShell", "SmokeShellRed", "SmokeShellGreen", "SmokeShellYellow", "SmokeShellPurple", "SmokeShellBlue", "SmokeShellOrange", "Chemlight_green", "Chemlight_red", "Chemlight_blue", "Chemlight_yellow", "HandGrenade", "HandGrenade_stone", "B_IR_Grenade", "ATMine_Range_Mag", "APERSMine_Range_Mag", "APERSBoundingMine_Range_Mag", "ClaymoreDirectionalMine_Remote_Mag", "DemoCharge_Remote_Mag", "UK3CB_BAF_1Rnd_HEDP_Grenade_shell" ]; _availableWeapons = [ "UK3CB_BAF_L110A2", "UK3CB_BAF_L115A3", "UK3CB_BAF_L128A1", "UK3CB_BAF_L129A1", "UK3CB_BAF_L129A1_AFG", "UK3CB_BAF_L129A1_FGrip", "UK3CB_BAF_L129A1_Grippod", "UK3CB_BAF_L22", "UK3CB_BAF_L22A2", "UK3CB_BAF_L7A2", "UK3CB_BAF_L85A2", "UK3CB_BAF_L85A2_RIS_AFG", "UK3CB_BAF_L85A2_EMAG", "UK3CB_BAF_L85A2_RIS", "UK3CB_BAF_L85A2_UGL", "UK3CB_BAF_L85A2_UGL_HWS", "UK3CB_BAF_L86A3", "UK3CB_BAF_L86A2", "UK3CB_BAF_L131A1", "UK3CB_BAF_AT4_CS_AT_Launcher", "UK3CB_BAF_AT4_CS_AP_Launcher", "UK3CB_BAF_NLAW_Launcher", "UK3CB_BAF_Javelin_Slung_Tube", "UK3CB_BAF_Javelin_CLU", "UK3CB_BAF_HMNVS", "UK3CB_BAF_Soflam_Laserdesignator", "UK3CB_BAF_Tripod", "UK3CB_BAF_L16_Tripod", "UK3CB_BAF_L111A1", "UK3CB_BAF_L134A1", "UK3CB_BAF_L16" ]; //Populate with predefined items and whatever is already in the crate [_crate,((backpackCargo _crate) + _availableBackpacks)] call BIS_fnc_addVirtualBackpackCargo; [_crate,((itemCargo _crate) + _availableHeadgear + _availableGoggles + _availableUniforms + _availableVests + _availableAttachments + _availableItems )] call BIS_fnc_addVirtualItemCargo; [_crate,((magazineCargo _crate) + _availableMagazines )] call BIS_fnc_addVirtualMagazineCargo; [_crate,((weaponCargo _crate) +_availableWeapons)] call BIS_fnc_addVirtualWeaponCargo; Any help will be appreciated I just cant seem to find out why only back packs will not show when it did yesterday. Other main mods ACE3CB modsRHSLOPTFAR Kunduz Share this post Link to post Share on other sites
lousy_lizard 3 Posted April 21, 2016 Hi there I tried this script with my own inventory and it works good just the items I wanted is in there how ever both the load profiles and the save option is greyed out anyone have an idea to resolve this thx. Share this post Link to post Share on other sites