Welcome to Tactical Gamer

User Tag List

Results 1 to 2 of 2
  1. #1
    Achievements:
    SocialRecommendation Second ClassCreated Album picturesTagger Second Class5000 Experience PointsVeteran

    DeF's Avatar

    Join Date
    Aug 2011
    Location
    Illinois
    Age
    25
    Posts
    708
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Smile ArmA 3 Alpha - Custom Crate Script

    I was working on my own mission and I complied a script of all the working items for Blufor minus Opfor primary/secondary weapons. The script will work on whatever crate you want and has variables so you can tune the crate. Just put it on a crate and it will fill it. No naming or editing needed. Also below I've included the link to the post with the classname information used to compile this script.

    Enjoy!

    Download customCrate.zip

    Place this in the initialization of your crate:
    Code:
    nul = [this] execVM "customCrate.sqf";
    Here is the source of the file:
    Code:
    // Initialize Crate
    
    _itemcrate = _this select 0;
    removeAllItems _itemcrate;
    removeAllWeapons _itemcrate;
    
    // Variables
    
    _numWeapon = 30;
    _numItem = 50;
    _numMod = 30;
    _numBag = 30;
    _numAmmo = 300;
    
    // NATO Weapons
    
    _itemcrate addWeaponCargo ["arifle_MX_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_MX_GL_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_MX_SW_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_MXC_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_MXM_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_SDAR_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_TRG20_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_TRG21_F", _numWeapon];
    _itemcrate addWeaponCargo ["arifle_TRG21_GL_F", _numWeapon];
    _itemcrate addWeaponCargo ["hgun_P07_F", _numWeapon];
    _itemcrate addWeaponCargo ["LMG_Mk200_F", _numWeapon];
    _itemcrate addWeaponCargo ["srifle_EBR_F", _numWeapon];
    
    // Launchers
    
    _itemcrate addWeaponCargo ["launch_NLAW_F", _numWeapon];
    _itemcrate addWeaponCargo ["launch_RPG32_F", _numWeapon];
    
    // Uniforms
    
    _itemcrate addItemCargo ["U_B_CombatUniform_mcam_tshirt", _numItem];
    _itemcrate addItemCargo ["U_B_CombatUniform_mcam_vest", _numItem];
    _itemcrate addItemCargo ["U_B_HeliPilotCoveralls", _numItem];
    _itemcrate addItemCargo ["U_B_Wetsuit", _numItem];
    _itemcrate addItemCargo ["U_BasicBody", _numItem];
    
    
    // Vests
    
    _itemcrate addItemCargo ["V_BandollierB_cbr", _numItem];
    _itemcrate addItemCargo ["V_BandollierB_khk", _numItem];
    _itemcrate addItemCargo ["V_BandollierB_rgr", _numItem];
    _itemcrate addItemCargo ["V_Chestrig_khk", _numItem];
    _itemcrate addItemCargo ["V_ChestrigB_rgr", _numItem];
    _itemcrate addItemCargo ["V_HarnessO_brn", _numItem];
    _itemcrate addItemCargo ["V_HarnessOGL_brn", _numItem];
    _itemcrate addItemCargo ["V_PlateCarrier1_cbr", _numItem];
    _itemcrate addItemCargo ["V_PlateCarrier1_rgr", _numItem];
    _itemcrate addItemCargo ["V_PlateCarrier2_rgr", _numItem];
    _itemcrate addItemCargo ["V_PlateCarrierGL_rgr", _numItem];
    _itemcrate addItemCargo ["V_RebreatherB", _numItem];
    _itemcrate addItemCargo ["V_RebreatherIR", _numItem];
    _itemcrate addItemCargo ["V_TacVest_brn", _numItem];
    _itemcrate addItemCargo ["V_TacVest_khk", _numItem];
    _itemcrate addItemCargo ["V_TacVest_oli", _numItem];
    
    // Helmets and Hats
    
    _itemcrate addItemCargo ["H_Cap_blu", _numItem];
    _itemcrate addItemCargo ["H_Cap_brn_SERO", _numItem];
    _itemcrate addItemCargo ["H_Cap_headphones", _numItem];
    _itemcrate addItemCargo ["H_Cap_red", _numItem];
    _itemcrate addItemCargo ["H_HelmetB", _numItem];
    _itemcrate addItemCargo ["H_HelmetB_light", _numItem];
    _itemcrate addItemCargo ["H_HelmetB_paint", _numItem];
    _itemcrate addItemCargo ["H_HelmetO_ocamo", _numItem];
    _itemcrate addItemCargo ["H_MilCap_mcamo", _numItem];
    _itemcrate addItemCargo ["H_MilCap_ocamo", _numItem];
    _itemcrate addItemCargo ["H_PilotHelmetHeli_B", _numItem];
    _itemcrate addItemCargo ["H_PilotHelmetHeli_O", _numItem];
    
    // Backpacks
    
    _itemcrate addBackpackCargo ["B_AssaultPack_blk", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_blk_DiverExp", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_blk_DiverTL", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_cbr", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_dgtl", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_khk", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_khk_holder", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_mcamo", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_ocamo", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_rgr", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_rgr_Medic", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_rgr_Repair", _numBag];
    _itemcrate addBackpackCargo ["B_AssaultPack_sgg", _numBag];
    _itemcrate addBackpackCargo ["B_Bergen_sgg", _numBag];
    _itemcrate addBackpackCargo ["B_Bergen_sgg_Exp", _numBag];
    
    // Items and Explosives
    
    _itemcrate addWeaponCargo ["Binocular", _numItem];
    _itemcrate addItemCargo ["FirstAidKit", _numItem];
    _itemcrate addItemCargo ["ItemCompass", _numItem];
    _itemcrate addItemCargo ["ItemGPS", _numItem];
    _itemcrate addItemCargo ["ItemMap", _numItem];
    _itemcrate addItemCargo ["ItemRadio", _numItem];
    _itemcrate addItemCargo ["ItemWatch", _numItem];
    _itemcrate addItemCargo ["Medikit", _numItem];
    _itemcrate addItemCargo ["MineDetector", _numItem];
    _itemcrate addItemCargo ["NVGoggles", _numItem];
    _itemcrate addItemCargo ["ToolKit", _numItem];
    _itemcrate addMagazineCargo ["APERSBoundingMine_Range_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["APERSMine_Range_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["ATMine_Range_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["Chemlight_blue", _numAmmo];
    _itemcrate addMagazineCargo ["Chemlight_green", _numAmmo];
    _itemcrate addMagazineCargo ["Chemlight_red", _numAmmo];
    _itemcrate addMagazineCargo ["Chemlight_yellow", _numAmmo];
    _itemcrate addMagazineCargo ["ClaymoreDirectionalMine_Remote_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["DemoCharge_Remote_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["HandGrenade", _numAmmo];
    _itemcrate addMagazineCargo ["HandGrenade_Stone", _numAmmo];
    _itemcrate addMagazineCargo ["MiniGrenade", _numAmmo];
    _itemcrate addMagazineCargo ["SatchelCharge_Remote_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["SLAMDirectionalMine_Wire_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShell", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShellBlue", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShellGreen", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShellOrange", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShellPurple", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShellRed", _numAmmo];
    _itemcrate addMagazineCargo ["SmokeShellYellow", _numAmmo];
    
    // Attachments
    
    _itemcrate addItemCargo ["acc_flashlight", _numMod];
    _itemcrate addItemCargo ["acc_pointer_IR", _numMod];
    _itemcrate addItemCargo ["muzzle_snds_B", _numMod];
    _itemcrate addItemCargo ["muzzle_snds_H", _numMod];
    _itemcrate addItemCargo ["muzzle_snds_H_MG", _numMod];
    _itemcrate addItemCargo ["muzzle_snds_L", _numMod];
    _itemcrate addItemCargo ["optic_Aco", _numMod];
    _itemcrate addItemCargo ["optic_ACO_grn", _numMod];
    _itemcrate addItemCargo ["optic_Arco", _numMod];
    _itemcrate addItemCargo ["optic_Hamr", _numMod];
    _itemcrate addItemCargo ["optic_Holosight", _numMod];
    
    // Rifle and Pistol Ammo
    
    _itemcrate addMagazineCargo ["30Rnd_65x39_caseless_green", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_65x39_caseless_green_mag_Tracer", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_65x39_caseless_mag", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_65x39_caseless_mag_Tracer", _numAmmo];
    _itemcrate addMagazineCargo ["100Rnd_65x39_caseless_mag", _numAmmo];
    _itemcrate addMagazineCargo ["100Rnd_65x39_caseless_mag_Tracer", _numAmmo];
    _itemcrate addMagazineCargo ["20Rnd_762x45_mag", _numAmmo];
    _itemcrate addMagazineCargo ["20Rnd_556x45_UW_mag", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_556x45_Stanag", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_65x39_case_mag", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_65x39_case_mag_Tracer", _numAmmo];
    _itemcrate addMagazineCargo ["16Rnd_9x21_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["30Rnd_9x21_Mag", _numAmmo];
    _itemcrate addMagazineCargo ["200Rnd_65x39_cased_Box", _numAmmo];
    _itemcrate addMagazineCargo ["200Rnd_65x39_cased_Box_Tracer", _numAmmo];
    
    // Launcher Ammo
    
    _itemcrate addMagazineCargo ["NLAW_F", _numAmmo];
    _itemcrate addMagazineCargo ["RPG32_F", _numAmmo];
    _itemcrate addMagazineCargo ["RPG32_AA_F", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_HE_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["UGL_FlareWhite_F", _numAmmo];
    _itemcrate addMagazineCargo ["UGL_FlareGreen_F", _numAmmo];
    _itemcrate addMagazineCargo ["UGL_FlareRed_F", _numAmmo];
    _itemcrate addMagazineCargo ["UGL_FlareYellow_F", _numAmmo];
    _itemcrate addMagazineCargo ["UGL_FlareCIR_F", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_Smoke_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_SmokeRed_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_SmokeGreen_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_SmokeYellow_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_SmokePurple_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_SmokeBlue_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["1Rnd_SmokeOrange_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_HE_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_UGL_FlareWhite_F", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_UGL_FlareGreen_F", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_UGL_FlareRed_F", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_UGL_FlareYellow_F", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_UGL_FlareCIR_F", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_Smoke_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_SmokeRed_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_SmokeGreen_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_SmokeYellow_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_SmokePurple_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_SmokeBlue_Grenade_shell", _numAmmo];
    _itemcrate addMagazineCargo ["3Rnd_SmokeOrange_Grenade_shell", _numAmmo];
    Source for class names:
    http://www.armaholic.com/forums.php?m=posts&id=138205



  2.  
  3. #2


    Achievements:
    SocialRecommendation First ClassVeteranCreated Blog entryTagger First Class
    Awards:
    Calendar Award

    Unkl's Avatar

    Join Date
    Jan 2010
    Location
    Great White North
    Age
    45
    Posts
    4,824
    Blog Entries
    5
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: ArmA 3 Alpha - Custom Crate Script

    Awesome thanks DeF

  4.  

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Back to top