Jump to content
Sign in to follow this  
Solarghost

Ammo crate filler including all new Ace stuff

Recommended Posts

This script has now been updated, tart copying from the first forward slash. Create a new .sqf file and copy the script and paste it in, then save the file name as ammo

It when then create the file called ammo.sqf copy that in to your new mission directory for the current mission u are making then create a special forces ammo crate, and copy and paste in this line...

Nul = [this] execVM "ammo.sqf";

It works for me in my missions, so it should work for you...

Churr

/*

Run this script from the INIT line of an ammo crate:

Nul = [this] execVM "ammo.sqf";

//==================================================================

// DO NOT EDIT THIS SECTION

*/ _wepset = [];

#define WEP(wep,num) _wepset = _wepset + [[##wep,##num]];

_magset = [];

#define MAG(mag,num) _magset = _magset + [[##mag,##num]];

//===================================================================

//WEAPONS//

WEP("ACE_GlassesSpectacles",10)

WEP("ACE_GlassesRoundGlasses",10)

WEP("ACE_GlassesSunglasses",10)

WEP("ACE_GlassesBlackSun",10)

WEP("ACE_GlassesBlueSun",10)

WEP("ACE_GlassesRedSun",10)

WEP("ACE_GlassesGreenSun",10)

WEP("ACE_GlassesLHD_glasses",10)

WEP("ACE_GlassesLHD_glasses",10)

WEP("ACE_GlassesTactical",10)

WEP("ACE_GlassesGasMask_US",10)

WEP("ACE_GlassesBalaklava",10)

WEP("ACE_Earplugs",100)

WEP("Laserdesignator",100)

WEP("ACE_Rangefinder_OD",100)

WEP("ACE_Spottingscope",100)

WEP("ACE_Wirecutter",100)

WEP("ACE_ParachuteRoundPack",10)

WEP("ACE_USP",100)

WEP("ACE_USPSD",100)

WEP("ACE_P226",100)

WEP("ACE_Kestrel4500",100)

WEP("ACE_ParachutePack",50)

WEP("M9",15)

WEP("M9SD",15)

WEP("Colt1911",15)

WEP("ACE_Glock17",15)

WEP("ACE_Glock18",15)

WEP("ACE_Flaregun",15)

WEP("M16A2",15)

WEP("M16A2GL",15)

WEP("M16A4",15)

WEP("M16A4_GL",15)

WEP("M16A4_ACG",15)

WEP("M16A4_ACG_GL",15)

WEP("ACE_M16A4_Iron",15)

WEP("M4A1",15)

WEP("ACE_M4A1_GL",15)

WEP("ACE_M4A1_GL_SD",15)

WEP("M4A1_HWS_GL",15)

WEP("M4A1_HWS_GL_camo",15)

WEP("M4A1_HWS_GL_SD_Camo",15)

WEP("M4A1_RCO_GL",15)

WEP("M4A1_Aim",15)

WEP("M4A1_Aim_camo",15)

WEP("M4A1_AIM_SD_camo",15)

WEP("ACE_SOC_M4A1_Aim",15)

WEP("ACE_SOC_M4A1_AIM_SD",15)

WEP("ACE_SOC_M4A1_GL",15)

WEP("ACE_SOC_M4A1",15)

WEP("ACE_SOC_M4A1_GL_SD",15)

WEP("ACE_SOC_M4A1_Eotech",15)

WEP("ACE_SOC_M4A1_GL_13",15)

WEP("ACE_SOC_M4A1_GL_EOTECH",15)

WEP("ACE_SOC_M4A1_SD_9",15)

WEP("ACE_SOC_M4A1_SHORTDOT",15)

WEP("ACE_SOC_M4A1_SHORTDOT_SD",15)

WEP("ACE_SOC_M4A1_RCO_GL",15)

WEP("ACE_SOC_M4A1_GL_AIMPOINT",15)

WEP("ACE_M4A1_ACOG",15)

WEP("ACE_M4A1_ACOG_SD",15)

WEP("ACE_M4A1_Aim_SD",15)

WEP("ACE_M4A1_Eotech",15)

WEP("ACE_FAL_Para",15)

WEP("ACE_SA58",15)

WEP("G36a",10)

WEP("G36c",10)

WEP("G36_C_SD_eotech",10)

WEP("G36k",10)

WEP("M1014",10)

WEP("MP5A5",10)

WEP("MP5SD",10)

WEP("ACE_MP5A4",10)

WEP("ACE_UMP45",10)

WEP("ACE_UMP45_SD",10)

WEP("M8_carbine",10)

WEP("M8_carbineGL",10)

WEP("M8_compact",10)

WEP("MG36",10)

WEP("Mk_48",10)

WEP("M240",10)

WEP("ACE_M240G_M145",10)

WEP("ACE_M60",10)

WEP("M249",10)

WEP("ACE_M249Para",10)

WEP("ACE_M249Para_M145",10)

WEP("M8_SAW",10)

WEP("M24",10)

WEP("DMR",10)

WEP("M107",10)

WEP("M40A3",10)

WEP("M4SPR",10)

WEP("ACE_M4SPR_SD",10)

WEP("M8_sharpshooter",10)

WEP("ACE_M109",10)

WEP("ACE_M110",10)

WEP("ACE_M110_SD",10)

WEP("ACE_TAC50",10)

WEP("ACE_TAC50_SD",10)

WEP("M136",10)

WEP("SMAW",10)

WEP("ACE_M32",10)

WEP("ACE_M79",10)

WEP("Binocular",10)

WEP("NVGoggles",10)

WEP("JAVELIN",10)

WEP("STINGER",10)

WEP("AK_107_kobra",10)

WEP("AK_107_GL_kobra",10)

WEP("AK_107_GL_pso",10)

WEP("AK_107_pso",10)

WEP("AK_74",10)

WEP("AK_74_GL",10)

WEP("ItemMap",10)

WEP("AK_47_M",10)

WEP("AKS_GOLD",10)

WEP("ACE_Map_Tools",100)

WEP("ACE_HK416_D10",100)

WEP("ACE_HK416_D10_SD",100)

WEP("ACE_HK416_D10_AIM",100)

WEP("ACE_HK416_D10_M320",100)

WEP("ACE_HK416_D14",100)

WEP("ACE_HK416_D14_SD",100)

WEP("ACE_G3A3",100)

//AMMO//

MAG("ACE_Stretcher",100)

MAG("ACE_30Rnd_556x45_T_Stanag",100)

MAG("ACE_30Rnd_556x45_S_Stanag",100)

MAG("ACE_20Rnd_762x51_B_G3",100)

MAG("ACE_15Rnd_9x19_P226",100)

MAG("ACE_Rope_M_50",100)

MAG("ACE_Rope_M_60",100)

MAG("ACE_Rope_M_90",100)

MAG("ACE_Rope_M_120",100)

MAG("ACE_Sandbag_Magazine",100)

MAG("ACE_C4_M",10)

MAG("ACE_12Rnd_45ACP_USP",50)

MAG("ACE_12Rnd_45ACP_USPSD",50)

MAG("ACE_Battery_Rangefinder",50)

MAG("HandGrenade_West",50)

MAG("HandGrenade_Stone",50)

MAG("Smokeshell",50)

MAG("Smokeshellred",50)

MAG("Smokeshellgreen",50)

MAG("SmokeShellYellow",50)

MAG("SmokeShellOrange",50)

MAG("SmokeShellPurple",50)

MAG("ace_flashbang",50)

MAG("ace_m84",50)

MAG("ace_m7a3",50)

MAG("ace_m34",50)

MAG("ACE_IRStrobe",50)

MAG("ACE_M86PDM",50)

MAG("ACE_M2SLAM_M",50)

MAG("30Rnd_9x19_MP5",50)

MAG("30Rnd_9x19_MP5SD",50)

MAG("ACE_25Rnd_1143x23_B_UMP45",50)

MAG("7Rnd_45ACP_1911",50)

MAG("15Rnd_9x19_M9",50)

MAG("15Rnd_9x19_M9SD",50)

MAG("ACE_33Rnd_9x19_G18",50)

MAG("ACE_17Rnd_9x19_G17",50)

MAG("20Rnd_556x45_Stanag",50)

MAG("30Rnd_556x45_Stanag",50)

MAG("ACE_30Rnd_556x45_T_Stanag",50)

MAG("30Rnd_556x45_StanagSD",50)

MAG("ACE_20Rnd_762x51_B_FAL",50)

MAG("ACE_30Rnd_762x51_B_FAL",50)

MAG("30Rnd_556x45_G36",50)

MAG("200Rnd_556x45_M249",50)

MAG("ACE_200Rnd_556x45_T_M249",50)

MAG("100Rnd_556x45_BetaCMag",50)

MAG("8Rnd_B_Beneli_74Slug",50)

MAG("ACE_8Rnd_12Ga_Slug",500)

MAG("ACE_8Rnd_12Ga_Buck00",500)

MAG("ACE_9Rnd_12Ga_Slug",500)

MAG("ACE_9Rnd_12Ga_Buck00",500)

MAG("5Rnd_762x51_M24",50)

MAG("ACE_5Rnd_762x51_T_M24",50)

MAG("20Rnd_762x51_DMR",50)

MAG("ACE_20Rnd_762x51_T_DMR",50)

MAG("10Rnd_127x99_M107",30)

MAG("ACE_10Rnd_127x99_T_m107",3)

MAG("ACE_5Rnd_25x59_HEDP_Barrett",30)

MAG("ACE_20Rnd_762x51_SB_M110",50)

MAG("ACE_20Rnd_762x51_S_M110",50)

MAG("ACE_20Rnd_762x51_T_M110",50)

MAG("ACE_5Rnd_127x99_B_TAC50",30)

MAG("ACE_5Rnd_127x99_S_TAC50",30)

MAG("ACE_5Rnd_127x99_T_TAC50",30)

MAG("100Rnd_762x51_M240",50)

MAG("1Rnd_HE_M203",50)

MAG("ace_1rnd_cs_m203",50)

MAG("ACE_6Rnd_40mm_M32",50)

MAG("FlareWhite_M203",50)

MAG("FlareGreen_M203",50)

MAG("FlareRed_M203",50)

MAG("ACE_SSWhite_M203",50)

MAG("ACE_SSGreen_M203",50)

MAG("ACE_SSRed_M203",50)

MAG("ACE_SSYellow_M203",50)

MAG("1Rnd_SmokeRed_M203",50)

MAG("1Rnd_SmokeGreen_M203",50)

MAG("1Rnd_SmokeYellow_M203",50)

MAG("1Rnd_Smoke_M203",50)

MAG("ACE_SSWhite_FG",50)

MAG("ACE_SSRed_FG",50)

MAG("ACE_SSGreen_FG",50)

MAG("ACE_SSYellow_FG",50)

MAG("SMAW_HEAA",30)

MAG("SMAW_HEDP",30)

MAG("ACE_SMAW_Spotting",30)

MAG("Pipebomb",30)

MAG("Mine",30)

MAG("ACE_Claymore_M",30)

MAG("ACE_BBetty_M",30)

MAG("ACE_TripFlare_M",30)

MAG("Laserbatteries",20)

MAG("JAVELIN",10)

MAG("STINGER",20)

MAG("30Rnd_545x39_AK",50)

MAG("30Rnd_762x39_AK47",50)

MAG("FlareWhite_GP25",50)

MAG("FlareGreen_GP25",50)

MAG("FlareRed_GP25",50)

MAG("FlareYellow_GP25",50)

MAG("1Rnd_HE_GP25",50)

MAG("SmokeShellRed",50)

MAG("SmokeShellGreen",50)

MAG("SmokeShell",50)

// DO NOT EDIT BELOW THIS LINE

if((typeName _this) == "ARRAY") then {

{

_crate = _x;

clearMagazineCargo _crate;

clearWeaponCargo _crate;

{_crate addWeaponCargo [_x select 0, _x select 1]} forEach _wepset;

{_crate addMagazineCargo [_x select 0, _x select 1]} forEach _magset;

} forEach _this;

} else {

clearMagazineCargo _this;

clearWeaponCargo _this;

{_this addWeaponCargo [_x select 0, _x select 1]} forEach _wepset;

{_this addMagazineCargo [_x select 0, _x select 1]} forEach _magset;

};

Edited by Solarghost
UPDATED THE SCRIPT

Share this post


Link to post
Share on other sites
Thanks, was kinda too lazy to do it myself ^^

Rofl... I know what you mean, took me ages LOL

Share this post


Link to post
Share on other sites
Rofl... I know what you mean, took me ages LOL

That would be a lot of cut-and-pasting for me, good job.

Share this post


Link to post
Share on other sites

All I wanted was the Ace2 class names since bis deleted the other page because too much traffic was going there.

Share this post


Link to post
Share on other sites

lol damn it, I just tried this with nul0 = this execVM "ammo.sqf";

in my init line,

And it doesn't work.

Any suggestions?

Share this post


Link to post
Share on other sites

delete this line _crate = _this select 0

and change this line from _crate to _this

; Remove the stock items from the crate

clearMagazineCargo _crate

clearWeaponCargo _crate

Share this post


Link to post
Share on other sites

I put this in:

; Get the crate parameter given

_this = _this select 0

; Remove the stock items from the crate

clearMagazineCargo _crate

clearWeaponCargo _crate

But it does not work lol

Share this post


Link to post
Share on other sites

copy this verbatim

; HELP: Run this script from the INITIALIZATION box of the crate.
; CODE: nul0 = this execVM "ammo.sqf";
; ************************************************** **************
; Remove the stock items from the crate
clearMagazineCargo _this
clearWeaponCargo _this

//WEAPONS//


_this addweaponcargo ["ACE_ParachutePack",50];
_this addweaponcargo ["M9",15];
_this addweaponcargo ["M9SD",15];
_this addweaponcargo ["Colt1911",15];
_this addweaponcargo ["ACE_Glock17",15];
_this addweaponcargo ["ACE_Glock18",15];
_this addweaponcargo ["ACE_Flaregun",15];
_this addweaponcargo ["M16A2",15];
_this addweaponcargo ["M16A2GL",15];
_this addweaponcargo ["M16A4",15];
_this addweaponcargo ["M16A4_GL",15];
_this addweaponcargo ["M16A4_ACG",15];
_this addweaponcargo ["M16A4_ACG_GL",15];
_this addweaponcargo ["ACE_M16A4_Iron",15];
_this addweaponcargo ["M4A1",15];
_this addweaponcargo ["ACE_M4A1_GL",15];
_this addweaponcargo ["ACE_M4A1_GL_SD",15];
_this addweaponcargo ["M4A1_HWS_GL",15];
_this addweaponcargo ["M4A1_HWS_GL_camo",15];
_this addweaponcargo ["M4A1_HWS_GL_SD_Camo",1]5;
_this addweaponcargo ["M4A1_RCO_GL",15];
_this addweaponcargo ["M4A1_Aim",15];
_this addweaponcargo ["M4A1_Aim_camo",15];
_this addweaponcargo ["M4A1_AIM_SD_camo",15];
_this addweaponcargo ["ACE_SOC_M4A1_Aim",15];
_this addweaponcargo ["ACE_SOC_M4A1_AIM_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL",15];
_this addweaponcargo ["ACE_SOC_M4A1",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_Eotech",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_13",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_EOTECH",15];
_this addweaponcargo ["ACE_SOC_M4A1_SD_9",15];
_this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT",15];
_this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_RCO_GL",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_AIMPOINT",15];
_this addweaponcargo ["ACE_M4A1_ACOG",15];
_this addweaponcargo ["ACE_M4A1_ACOG_SD",15];
_this addweaponcargo ["ACE_M4A1_Aim_SD",15];
_this addweaponcargo ["ACE_M4A1_Eotech",15];
_this addweaponcargo ["ACE_FAL_Para",15];
_this addweaponcargo ["ACE_SA58",15];
_this addweaponcargo ["G36a",10];
_this addweaponcargo ["G36c",10];
_this addweaponcargo ["G36_C_SD_eotech",10];
_this addweaponcargo ["G36k",10];
_this addweaponcargo ["M1014",10];
_this addweaponcargo ["MP5A5",10];
_this addweaponcargo ["MP5SD",10];	
_this addweaponcargo ["ACE_MP5A4",10];
_this addweaponcargo ["ACE_UMP45",10];
_this addweaponcargo ["ACE_UMP45_SD",10];
_this addweaponcargo ["M8_carbine",10];
_this addweaponcargo ["M8_carbineGL",10];
_this addweaponcargo ["M8_compact",10];
_this addweaponcargo ["MG36",10];
_this addweaponcargo ["Mk_48",10];
_this addweaponcargo ["M240",10];
_this addweaponcargo ["ACE_M240G_M145",10];
_this addweaponcargo ["ACE_M60",10];
_this addweaponcargo ["M249",10];
_this addweaponcargo ["ACE_M249Para",10];
_this addweaponcargo ["ACE_M249Para_M145",10];
_this addweaponcargo ["M8_SAW",10];
_this addweaponcargo ["M24",10];
_this addweaponcargo ["DMR",10];
_this addweaponcargo ["M107",10];
_this addweaponcargo ["M40A3",10];
_this addweaponcargo ["M4SPR",10];
_this addweaponcargo ["ACE_M4SPR_SD",10];
_this addweaponcargo ["M8_sharpshooter",10];
_this addweaponcargo ["ACE_M109",10];
_this addweaponcargo ["ACE_M110",10];
_this addweaponcargo ["ACE_M110_SD",10];
_this addweaponcargo ["ACE_TAC50",10];
_this addweaponcargo ["ACE_TAC50_SD",10];
_this addweaponcargo ["M136",10];
_this addweaponcargo ["SMAW",10];
_this addweaponcargo ["ACE_M32",10];
_this addweaponcargo ["ACE_M79",10];
_this addweaponcargo ["ACE_GlassesSpectacles",10];
_this addweaponcargo ["ACE_GlassesRoundGlasses",10];
_this addweaponcargo ["ACE_GlassesSunglasses",10];
_this addweaponcargo ["ACE_GlassesBlackSun",10];
_this addweaponcargo ["ACE_GlassesBlueSun",10];
_this addweaponcargo ["ACE_GlassesRedSun",10];
_this addweaponcargo ["ACE_GlassesGreenSun",10];
_this addweaponcargo ["ACE_GlassesLHD_glasses",10];
_this addweaponcargo ["ACE_GlassesLHD_glasses",10];
_this addweaponcargo ["ACE_GlassesTactical",10];
_this addweaponcargo ["ACE_GlassesGasMask_US",10];
_this addweaponcargo ["ACE_GlassesBalaklava",10];
_this addweaponcargo ["ACE_Earplugs",10];
_this addweaponcargo ["Laserdesignator",10];
_this addweaponcargo ["ACE_Rangefinder_OD",10];
_this addweaponcargo ["Binocular",10];
_this addweaponcargo ["NVGoggles",10];
_this addweaponcargo ["JAVELIN",10];
_this addweaponcargo ["STINGER",10];
_this addweaponcargo ["AK_107_kobra",10];
_this addweaponcargo ["AK_107_GL_kobra",10];
_this addweaponcargo ["AK_107_GL_pso",10];
_this addweaponcargo ["AK_107_pso",10];
_this addweaponcargo ["AK_74",10];
_this addweaponcargo ["AK_74_GL",10];
_this addweaponcargo ["ACE_Spottingscope",10];
_this addweaponcargo ["ACE_Wirecutter",10];
_this addweaponcargo ["ACE_ParachuteRoundPack",10];
_this addweaponcargo ["ACE_C4_M ",10];
_this addweaponcargo ["ACE_ACE_Sandbag_Magazine",100];
_this addweaponcargo ["ACE_USP",10];
_this addweaponcargo ["ACE_USPSD",10];
_this addweaponcargo ["ACE_P226",10];




//AMMO//

_this addmagazinecargo ["ACE_15Rnd_9x19_USP",50];
_this addmagazinecargo ["ACE_15Rnd_9x19_USPSD",50];
_this addmagazinecargo ["ACE_Battery_Rangefinder",50];
_this addmagazinecargo ["HandGrenade_West",50];
_this addmagazinecargo ["HandGrenade_Stone",50];
_this addmagazinecargo ["Smokeshell",50];
_this addmagazinecargo ["Smokeshellred",50];
_this addmagazinecargo ["Smokeshellgreen",50];
_this addmagazinecargo ["SmokeShellYellow",50];
_this addmagazinecargo ["SmokeShellOrange",50];
_this addmagazinecargo ["SmokeShellPurple",50];
_this addmagazinecargo ["ace_flashbang",50];
_this addmagazinecargo ["ace_m84",50];
_this addmagazinecargo ["ace_m7a3",50];
_this addmagazinecargo ["ace_m34",50];
_this addmagazinecargo ["ACE_IRStrobe",50];
_this addmagazinecargo ["ACE_M86PDM",50];
_this addmagazinecargo ["ACE_M2SLAM_M",50];
_this addmagazinecargo ["30Rnd_9x19_MP5",50];
_this addmagazinecargo ["30Rnd_9x19_MP5SD",50];
_this addmagazinecargo ["ACE_25Rnd_1143x23_B_UMP45",50];
_this addmagazinecargo ["7Rnd_45ACP_1911",50];
_this addmagazinecargo ["15Rnd_9x19_M9",50];
_this addmagazinecargo ["15Rnd_9x19_M9SD",50];
_this addmagazinecargo ["ACE_33Rnd_9x19_G18",50];
_this addmagazinecargo ["ACE_17Rnd_9x19_G17",50];
_this addmagazinecargo ["20Rnd_556x45_Stanag",50];
_this addmagazinecargo ["30Rnd_556x45_Stanag",50];
_this addmagazinecargo ["ACE_30Rnd_556x45_T_Stanag",50];
_this addmagazinecargo ["30Rnd_556x45_StanagSD",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_B_FAL",50];
_this addmagazinecargo ["ACE_30Rnd_762x51_B_FAL",50];
_this addmagazinecargo ["30Rnd_556x45_G36",50];
_this addmagazinecargo ["200Rnd_556x45_M249",50];
_this addmagazinecargo ["ACE_200Rnd_556x45_T_M249",50];
_this addmagazinecargo ["100Rnd_556x45_BetaCMag",50];
_this addmagazinecargo ["8Rnd_B_Beneli_74Slug",50];
_this addmagazinecargo ["ACE_8Rnd_12Ga_Slug",50];
_this addmagazinecargo ["ACE_8Rnd_12Ga_Buck00",50];
_this addmagazinecargo ["ACE_9Rnd_12Ga_Slug",50];
_this addmagazinecargo ["ACE_9Rnd_12Ga_Buck00",50];
_this addmagazinecargo ["5Rnd_762x51_M24",50];
_this addmagazinecargo ["ACE_5Rnd_762x51_T_M24",50];
_this addmagazinecargo ["20Rnd_762x51_DMR",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_T_DMR",50];
_this addmagazinecargo ["10Rnd_127x99_M107",3];
_this addmagazinecargo ["ACE_10Rnd_127x99_T_m107",3];
_this addmagazinecargo ["ACE_5Rnd_25x59_HEDP_Barrett",3];
_this addmagazinecargo ["ACE_20Rnd_762x51_SB_M110",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_S_M110",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_T_M110",50];
_this addmagazinecargo ["ACE_5Rnd_127x99_B_TAC50",3];
_this addmagazinecargo ["ACE_5Rnd_127x99_S_TAC50",3];
_this addmagazinecargo ["ACE_5Rnd_127x99_T_TAC50",3];
_this addmagazinecargo ["100Rnd_762x51_M240",50];
_this addmagazinecargo ["1Rnd_HE_M203",50];
_this addmagazinecargo ["ace_1rnd_cs_m203",50];
_this addmagazinecargo ["ACE_6Rnd_40mm_M32",50];
_this addmagazinecargo ["FlareWhite_M203",50];
_this addmagazinecargo ["FlareGreen_M203",50];
_this addmagazinecargo ["FlareRed_M203",50];
_this addmagazinecargo ["ACE_SSWhite_M203",50];
_this addmagazinecargo ["ACE_SSGreen_M203",50];
_this addmagazinecargo ["ACE_SSRed_M203",50];
_this addmagazinecargo ["ACE_SSYellow_M203",50];
_this addmagazinecargo ["1Rnd_SmokeRed_M203",50];
_this addmagazinecargo ["1Rnd_SmokeGreen_M203",50];
_this addmagazinecargo ["1Rnd_SmokeYellow_M203",50];
_this addmagazinecargo ["1Rnd_Smoke_M203",50];
_this addMagazineCargo ["ACE_SSWhite_FG",50];
_this addMagazineCargo ["ACE_SSRed_FG",50];
_this addMagazineCargo ["ACE_SSGreen_FG",50];
_this addMagazineCargo ["ACE_SSYellow_FG",50];
_this addmagazinecargo ["M136",10];
_this addmagazinecargo ["SMAW_HEAA",3];
_this addmagazinecargo ["SMAW_HEDP",3];
_this addmagazinecargo ["ACE_SMAW_Spotting",30];
_this addmagazinecargo ["Pipebomb",30];
_this addmagazinecargo ["Mine",30];
_this addmagazinecargo ["ACE_Claymore_M",30];
_this addmagazinecargo ["ACE_BBetty_M",30];
_this addmagazinecargo ["ACE_TripFlare_M",30];
_this addmagazinecargo ["Laserbatteries",20];
_this addmagazinecargo ["JAVELIN",1];
_this addmagazinecargo ["STINGER",2];
_this addmagazinecargo ["30Rnd_545x39_AK",50];
_this addmagazinecargo ["30Rnd_762x39_AK47",50];
_this addmagazinecargo ["FlareWhite_GP25",50];
_this addmagazinecargo ["FlareGreen_GP25",50];
_this addmagazinecargo ["FlareRed_GP25",50];
_this addmagazinecargo ["FlareYellow_GP25",50];
_this addmagazinecargo ["1Rnd_HE_GP25",50];
_this addmagazinecargo ["SmokeShellRed",50];
_this addmagazinecargo ["SmokeShellGreen",50];
_this addmagazinecargo ["SmokeShell",50];

Share this post


Link to post
Share on other sites

where are you putting the script init commandline? and what is the format you are using?

Share this post


Link to post
Share on other sites

init command line is going in the ammo box init line:

nul0 = this execVM "ammo.sqf";

Share this post


Link to post
Share on other sites

then it should work. Check your rpt file and look for errors, maybe you have a typo somewhere?

Share this post


Link to post
Share on other sites

This pretty much works for me:

// HELP: Run this script from the INITIALIZATION box of the crate.
// CODE: _ammo = [this] execVM "ammo.sqf";
// ************************************************** **************

// Get the crate parameter given
_this = _this select 0;

// Remove the stock items from the crate
clearMagazineCargo _this;
clearWeaponCargo _this;

//WEAPONS//


_this addweaponcargo ["ACE_ParachutePack",50];
_this addweaponcargo ["M9",15];
_this addweaponcargo ["M9SD",15];
_this addweaponcargo ["Colt1911",15];
_this addweaponcargo ["ACE_Glock17",15];
_this addweaponcargo ["ACE_Glock18",15];
_this addweaponcargo ["ACE_Flaregun",15];
_this addweaponcargo ["M16A2",15];
_this addweaponcargo ["M16A2GL",15];
_this addweaponcargo ["M16A4",15];
_this addweaponcargo ["M16A4_GL",15];
_this addweaponcargo ["M16A4_ACG",15];
_this addweaponcargo ["M16A4_ACG_GL",15];
_this addweaponcargo ["ACE_M16A4_Iron",15];
_this addweaponcargo ["M4A1",15];
_this addweaponcargo ["ACE_M4A1_GL",15];
_this addweaponcargo ["ACE_M4A1_GL_SD",15];
_this addweaponcargo ["M4A1_HWS_GL",15];
_this addweaponcargo ["M4A1_HWS_GL_camo",15];
_this addweaponcargo ["M4A1_HWS_GL_SD_Camo",1]5;
_this addweaponcargo ["M4A1_RCO_GL",15];
_this addweaponcargo ["M4A1_Aim",15];
_this addweaponcargo ["M4A1_Aim_camo",15];
_this addweaponcargo ["M4A1_AIM_SD_camo",15];
_this addweaponcargo ["ACE_SOC_M4A1_Aim",15];
_this addweaponcargo ["ACE_SOC_M4A1_AIM_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL",15];
_this addweaponcargo ["ACE_SOC_M4A1",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_Eotech",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_13",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_EOTECH",15];
_this addweaponcargo ["ACE_SOC_M4A1_SD_9",15];
_this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT",15];
_this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_RCO_GL",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_AIMPOINT",15];
_this addweaponcargo ["ACE_M4A1_ACOG",15];
_this addweaponcargo ["ACE_M4A1_ACOG_SD",15];
_this addweaponcargo ["ACE_M4A1_Aim_SD",15];
_this addweaponcargo ["ACE_M4A1_Eotech",15];
_this addweaponcargo ["ACE_FAL_Para",15];
_this addweaponcargo ["ACE_SA58",15];
_this addweaponcargo ["G36a",10];
_this addweaponcargo ["G36c",10];
_this addweaponcargo ["G36_C_SD_eotech",10];
_this addweaponcargo ["G36k",10];
_this addweaponcargo ["M1014",10];
_this addweaponcargo ["MP5A5",10];
_this addweaponcargo ["MP5SD",10];	
_this addweaponcargo ["ACE_MP5A4",10];
_this addweaponcargo ["ACE_UMP45",10];
_this addweaponcargo ["ACE_UMP45_SD",10];
_this addweaponcargo ["M8_carbine",10];
_this addweaponcargo ["M8_carbineGL",10];
_this addweaponcargo ["M8_compact",10];
_this addweaponcargo ["MG36",10];
_this addweaponcargo ["Mk_48",10];
_this addweaponcargo ["M240",10];
_this addweaponcargo ["ACE_M240G_M145",10];
_this addweaponcargo ["ACE_M60",10];
_this addweaponcargo ["M249",10];
_this addweaponcargo ["ACE_M249Para",10];
_this addweaponcargo ["ACE_M249Para_M145",10];
_this addweaponcargo ["M8_SAW",10];
_this addweaponcargo ["M24",10];
_this addweaponcargo ["DMR",10];
_this addweaponcargo ["M107",10];
_this addweaponcargo ["M40A3",10];
_this addweaponcargo ["M4SPR",10];
_this addweaponcargo ["ACE_M4SPR_SD",10];
_this addweaponcargo ["M8_sharpshooter",10];
_this addweaponcargo ["ACE_M109",10];
_this addweaponcargo ["ACE_M110",10];
_this addweaponcargo ["ACE_M110_SD",10];
_this addweaponcargo ["ACE_TAC50",10];
_this addweaponcargo ["ACE_TAC50_SD",10];
_this addweaponcargo ["M136",10];
_this addweaponcargo ["SMAW",10];
_this addweaponcargo ["ACE_M32",10];
_this addweaponcargo ["ACE_M79",10];
_this addweaponcargo ["ACE_GlassesSpectacles",10];
_this addweaponcargo ["ACE_GlassesRoundGlasses",10];
_this addweaponcargo ["ACE_GlassesSunglasses",10];
_this addweaponcargo ["ACE_GlassesBlackSun",10];
_this addweaponcargo ["ACE_GlassesBlueSun",10];
_this addweaponcargo ["ACE_GlassesRedSun",10];
_this addweaponcargo ["ACE_GlassesGreenSun",10];
_this addweaponcargo ["ACE_GlassesLHD_glasses",10];
_this addweaponcargo ["ACE_GlassesLHD_glasses",10];
_this addweaponcargo ["ACE_GlassesTactical",10];
_this addweaponcargo ["ACE_GlassesGasMask_US",10];
_this addweaponcargo ["ACE_GlassesBalaklava",10];
_this addweaponcargo ["ACE_Earplugs",10];
_this addweaponcargo ["Laserdesignator",10];
_this addweaponcargo ["ACE_Rangefinder_OD",10];
_this addweaponcargo ["Binocular",10];
_this addweaponcargo ["NVGoggles",10];
_this addweaponcargo ["JAVELIN",10];
_this addweaponcargo ["STINGER",10];
_this addweaponcargo ["AK_107_kobra",10];
_this addweaponcargo ["AK_107_GL_kobra",10];
_this addweaponcargo ["AK_107_GL_pso",10];
_this addweaponcargo ["AK_107_pso",10];
_this addweaponcargo ["AK_74",10];
_this addweaponcargo ["AK_74_GL",10];
_this addweaponcargo ["ACE_Spottingscope",10];
_this addweaponcargo ["ACE_Wirecutter",10];
_this addweaponcargo ["ACE_ParachuteRoundPack",10];
_this addweaponcargo ["ACE_C4_M ",10];
_this addweaponcargo ["ACE_ACE_Sandbag_Magazine",100];
_this addweaponcargo ["ACE_USP",10];
_this addweaponcargo ["ACE_USPSD",10];
_this addweaponcargo ["ACE_P226",10];




//AMMO//

_this addmagazinecargo ["ACE_15Rnd_9x19_USP",50];
_this addmagazinecargo ["ACE_15Rnd_9x19_USPSD",50];
_this addmagazinecargo ["ACE_Battery_Rangefinder",50];
_this addmagazinecargo ["HandGrenade_West",50];
_this addmagazinecargo ["HandGrenade_Stone",50];
_this addmagazinecargo ["Smokeshell",50];
_this addmagazinecargo ["Smokeshellred",50];
_this addmagazinecargo ["Smokeshellgreen",50];
_this addmagazinecargo ["SmokeShellYellow",50];
_this addmagazinecargo ["SmokeShellOrange",50];
_this addmagazinecargo ["SmokeShellPurple",50];
_this addmagazinecargo ["ace_flashbang",50];
_this addmagazinecargo ["ace_m84",50];
_this addmagazinecargo ["ace_m7a3",50];
_this addmagazinecargo ["ace_m34",50];
_this addmagazinecargo ["ACE_IRStrobe",50];
_this addmagazinecargo ["ACE_M86PDM",50];
_this addmagazinecargo ["ACE_M2SLAM_M",50];
_this addmagazinecargo ["30Rnd_9x19_MP5",50];
_this addmagazinecargo ["30Rnd_9x19_MP5SD",50];
_this addmagazinecargo ["ACE_25Rnd_1143x23_B_UMP45",50];
_this addmagazinecargo ["7Rnd_45ACP_1911",50];
_this addmagazinecargo ["15Rnd_9x19_M9",50];
_this addmagazinecargo ["15Rnd_9x19_M9SD",50];
_this addmagazinecargo ["ACE_33Rnd_9x19_G18",50];
_this addmagazinecargo ["ACE_17Rnd_9x19_G17",50];
_this addmagazinecargo ["20Rnd_556x45_Stanag",50];
_this addmagazinecargo ["30Rnd_556x45_Stanag",50];
_this addmagazinecargo ["ACE_30Rnd_556x45_T_Stanag",50];
_this addmagazinecargo ["30Rnd_556x45_StanagSD",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_B_FAL",50];
_this addmagazinecargo ["ACE_30Rnd_762x51_B_FAL",50];
_this addmagazinecargo ["30Rnd_556x45_G36",50];
_this addmagazinecargo ["200Rnd_556x45_M249",50];
_this addmagazinecargo ["ACE_200Rnd_556x45_T_M249",50];
_this addmagazinecargo ["100Rnd_556x45_BetaCMag",50];
_this addmagazinecargo ["8Rnd_B_Beneli_74Slug",50];
_this addmagazinecargo ["ACE_8Rnd_12Ga_Slug",50];
_this addmagazinecargo ["ACE_8Rnd_12Ga_Buck00",50];
_this addmagazinecargo ["ACE_9Rnd_12Ga_Slug",50];
_this addmagazinecargo ["ACE_9Rnd_12Ga_Buck00",50];
_this addmagazinecargo ["5Rnd_762x51_M24",50];
_this addmagazinecargo ["ACE_5Rnd_762x51_T_M24",50];
_this addmagazinecargo ["20Rnd_762x51_DMR",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_T_DMR",50];
_this addmagazinecargo ["10Rnd_127x99_M107",3];
_this addmagazinecargo ["ACE_10Rnd_127x99_T_m107",3];
_this addmagazinecargo ["ACE_5Rnd_25x59_HEDP_Barrett",3];
_this addmagazinecargo ["ACE_20Rnd_762x51_SB_M110",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_S_M110",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_T_M110",50];
_this addmagazinecargo ["ACE_5Rnd_127x99_B_TAC50",3];
_this addmagazinecargo ["ACE_5Rnd_127x99_S_TAC50",3];
_this addmagazinecargo ["ACE_5Rnd_127x99_T_TAC50",3];
_this addmagazinecargo ["100Rnd_762x51_M240",50];
_this addmagazinecargo ["1Rnd_HE_M203",50];
_this addmagazinecargo ["ace_1rnd_cs_m203",50];
_this addmagazinecargo ["ACE_6Rnd_40mm_M32",50];
_this addmagazinecargo ["FlareWhite_M203",50];
_this addmagazinecargo ["FlareGreen_M203",50];
_this addmagazinecargo ["FlareRed_M203",50];
_this addmagazinecargo ["ACE_SSWhite_M203",50];
_this addmagazinecargo ["ACE_SSGreen_M203",50];
_this addmagazinecargo ["ACE_SSRed_M203",50];
_this addmagazinecargo ["ACE_SSYellow_M203",50];
_this addmagazinecargo ["1Rnd_SmokeRed_M203",50];
_this addmagazinecargo ["1Rnd_SmokeGreen_M203",50];
_this addmagazinecargo ["1Rnd_SmokeYellow_M203",50];
_this addmagazinecargo ["1Rnd_Smoke_M203",50];
_this addMagazineCargo ["ACE_SSWhite_FG",50];
_this addMagazineCargo ["ACE_SSRed_FG",50];
_this addMagazineCargo ["ACE_SSGreen_FG",50];
_this addMagazineCargo ["ACE_SSYellow_FG",50];
_this addmagazinecargo ["M136",10];
_this addmagazinecargo ["SMAW_HEAA",3];
_this addmagazinecargo ["SMAW_HEDP",3];
_this addmagazinecargo ["ACE_SMAW_Spotting",30];
_this addmagazinecargo ["Pipebomb",30];
_this addmagazinecargo ["Mine",30];
_this addmagazinecargo ["ACE_Claymore_M",30];
_this addmagazinecargo ["ACE_BBetty_M",30];
_this addmagazinecargo ["ACE_TripFlare_M",30];
_this addmagazinecargo ["Laserbatteries",20];
_this addmagazinecargo ["JAVELIN",1];
_this addmagazinecargo ["STINGER",2];
_this addmagazinecargo ["30Rnd_545x39_AK",50];
_this addmagazinecargo ["30Rnd_762x39_AK47",50];
_this addmagazinecargo ["FlareWhite_GP25",50];
_this addmagazinecargo ["FlareGreen_GP25",50];
_this addmagazinecargo ["FlareRed_GP25",50];
_this addmagazinecargo ["FlareYellow_GP25",50];
_this addmagazinecargo ["1Rnd_HE_GP25",50];
_this addmagazinecargo ["SmokeShellRed",50];
_this addmagazinecargo ["SmokeShellGreen",50];
_this addmagazinecargo ["SmokeShell",50];


if (true) exitWith {};

Share this post


Link to post
Share on other sites

I placed a vehicle ammo box and i put this in the init _ammo = [this] execVM "ammo.sqf";

no luck I get 15 m16 with different variation and that's it.

Share this post


Link to post
Share on other sites

where is your ammo.sqf file located?

Share this post


Link to post
Share on other sites

check your arma2.rpt file for errors in regards to the script.

Share this post


Link to post
Share on other sites

I have found syntax errors and have fixed them, try it now...

:)

// HELP: Run this script from the INITIALIZATION box of the crate.
// CODE: _ammo = [this] execVM "ammo.sqf";
// ************************************************** **************

// Get the crate parameter given
_this = _this select 0;

// Remove the stock items from the crate
clearMagazineCargo _this;
clearWeaponCargo _this;

//WEAPONS//


_this addweaponcargo ["ACE_ParachutePack",50];
_this addweaponcargo ["M9",15];
_this addweaponcargo ["M9SD",15];
_this addweaponcargo ["Colt1911",15];
_this addweaponcargo ["ACE_Glock17",15];
_this addweaponcargo ["ACE_Glock18",15];
_this addweaponcargo ["ACE_Flaregun",15];
_this addweaponcargo ["M16A2",15];
_this addweaponcargo ["M16A2GL",15];
_this addweaponcargo ["M16A4",15];
_this addweaponcargo ["M16A4_GL",15];
_this addweaponcargo ["M16A4_ACG",15];
_this addweaponcargo ["M16A4_ACG_GL",15];
_this addweaponcargo ["ACE_M16A4_Iron",15];
_this addweaponcargo ["M4A1",15];
_this addweaponcargo ["ACE_M4A1_GL",15];
_this addweaponcargo ["ACE_M4A1_GL_SD",15];
_this addweaponcargo ["M4A1_HWS_GL",15];
_this addweaponcargo ["M4A1_HWS_GL_camo",15];
_this addweaponcargo ["M4A1_HWS_GL_SD_Camo",15];
_this addweaponcargo ["M4A1_RCO_GL",15];
_this addweaponcargo ["M4A1_Aim",15];
_this addweaponcargo ["M4A1_Aim_camo",15];
_this addweaponcargo ["M4A1_AIM_SD_camo",15];
_this addweaponcargo ["ACE_SOC_M4A1_Aim",15];
_this addweaponcargo ["ACE_SOC_M4A1_AIM_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL",15];
_this addweaponcargo ["ACE_SOC_M4A1",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_Eotech",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_13",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_EOTECH",15];
_this addweaponcargo ["ACE_SOC_M4A1_SD_9",15];
_this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT",15];
_this addweaponcargo ["ACE_SOC_M4A1_SHORTDOT_SD",15];
_this addweaponcargo ["ACE_SOC_M4A1_RCO_GL",15];
_this addweaponcargo ["ACE_SOC_M4A1_GL_AIMPOINT",15];
_this addweaponcargo ["ACE_M4A1_ACOG",15];
_this addweaponcargo ["ACE_M4A1_ACOG_SD",15];
_this addweaponcargo ["ACE_M4A1_Aim_SD",15];
_this addweaponcargo ["ACE_M4A1_Eotech",15];
_this addweaponcargo ["ACE_FAL_Para",15];
_this addweaponcargo ["ACE_SA58",15];
_this addweaponcargo ["G36a",10];
_this addweaponcargo ["G36c",10];
_this addweaponcargo ["G36_C_SD_eotech",10];
_this addweaponcargo ["G36k",10];
_this addweaponcargo ["M1014",10];
_this addweaponcargo ["MP5A5",10];
_this addweaponcargo ["MP5SD",10];	
_this addweaponcargo ["ACE_MP5A4",10];
_this addweaponcargo ["ACE_UMP45",10];
_this addweaponcargo ["ACE_UMP45_SD",10];
_this addweaponcargo ["M8_carbine",10];
_this addweaponcargo ["M8_carbineGL",10];
_this addweaponcargo ["M8_compact",10];
_this addweaponcargo ["MG36",10];
_this addweaponcargo ["Mk_48",10];
_this addweaponcargo ["M240",10];
_this addweaponcargo ["ACE_M240G_M145",10];
_this addweaponcargo ["ACE_M60",10];
_this addweaponcargo ["M249",10];
_this addweaponcargo ["ACE_M249Para",10];
_this addweaponcargo ["ACE_M249Para_M145",10];
_this addweaponcargo ["M8_SAW",10];
_this addweaponcargo ["M24",10];
_this addweaponcargo ["DMR",10];
_this addweaponcargo ["M107",10];
_this addweaponcargo ["M40A3",10];
_this addweaponcargo ["M4SPR",10];
_this addweaponcargo ["ACE_M4SPR_SD",10];
_this addweaponcargo ["M8_sharpshooter",10];
_this addweaponcargo ["ACE_M109",10];
_this addweaponcargo ["ACE_M110",10];
_this addweaponcargo ["ACE_M110_SD",10];
_this addweaponcargo ["ACE_TAC50",10];
_this addweaponcargo ["ACE_TAC50_SD",10];
_this addweaponcargo ["M136",10];
_this addweaponcargo ["SMAW",10];
_this addweaponcargo ["ACE_M32",10];
_this addweaponcargo ["ACE_M79",10];
_this addweaponcargo ["ACE_GlassesSpectacles",10];
_this addweaponcargo ["ACE_GlassesRoundGlasses",10];
_this addweaponcargo ["ACE_GlassesSunglasses",10];
_this addweaponcargo ["ACE_GlassesBlackSun",10];
_this addweaponcargo ["ACE_GlassesBlueSun",10];
_this addweaponcargo ["ACE_GlassesRedSun",10];
_this addweaponcargo ["ACE_GlassesGreenSun",10];
_this addweaponcargo ["ACE_GlassesLHD_glasses",10];
_this addweaponcargo ["ACE_GlassesLHD_glasses",10];
_this addweaponcargo ["ACE_GlassesTactical",10];
_this addweaponcargo ["ACE_GlassesGasMask_US",10];
_this addweaponcargo ["ACE_GlassesBalaklava",10];
_this addweaponcargo ["ACE_Earplugs",10];
_this addweaponcargo ["Laserdesignator",10];
_this addweaponcargo ["ACE_Rangefinder_OD",10];
_this addweaponcargo ["Binocular",10];
_this addweaponcargo ["NVGoggles",10];
_this addweaponcargo ["JAVELIN",10];
_this addweaponcargo ["STINGER",10];
_this addweaponcargo ["AK_107_kobra",10];
_this addweaponcargo ["AK_107_GL_kobra",10];
_this addweaponcargo ["AK_107_GL_pso",10];
_this addweaponcargo ["AK_107_pso",10];
_this addweaponcargo ["AK_74",10];
_this addweaponcargo ["AK_74_GL",10];
_this addweaponcargo ["ACE_Spottingscope",10];
_this addweaponcargo ["ACE_Wirecutter",10];
_this addweaponcargo ["ACE_ParachuteRoundPack",10];
_this addweaponcargo ["ACE_C4_M",10];
_this addweaponcargo ["ACE_ACE_Sandbag_Magazine",100];
_this addweaponcargo ["ACE_USP",10];
_this addweaponcargo ["ACE_USPSD",10];
_this addweaponcargo ["ACE_P226",10];




//AMMO//

_this addmagazinecargo ["ACE_15Rnd_9x19_USP",50];
_this addmagazinecargo ["ACE_15Rnd_9x19_USPSD",50];
_this addmagazinecargo ["ACE_Battery_Rangefinder",50];
_this addmagazinecargo ["HandGrenade_West",50];
_this addmagazinecargo ["HandGrenade_Stone",50];
_this addmagazinecargo ["Smokeshell",50];
_this addmagazinecargo ["Smokeshellred",50];
_this addmagazinecargo ["Smokeshellgreen",50];
_this addmagazinecargo ["SmokeShellYellow",50];
_this addmagazinecargo ["SmokeShellOrange",50];
_this addmagazinecargo ["SmokeShellPurple",50];
_this addmagazinecargo ["ace_flashbang",50];
_this addmagazinecargo ["ace_m84",50];
_this addmagazinecargo ["ace_m7a3",50];
_this addmagazinecargo ["ace_m34",50];
_this addmagazinecargo ["ACE_IRStrobe",50];
_this addmagazinecargo ["ACE_M86PDM",50];
_this addmagazinecargo ["ACE_M2SLAM_M",50];
_this addmagazinecargo ["30Rnd_9x19_MP5",50];
_this addmagazinecargo ["30Rnd_9x19_MP5SD",50];
_this addmagazinecargo ["ACE_25Rnd_1143x23_B_UMP45",50];
_this addmagazinecargo ["7Rnd_45ACP_1911",50];
_this addmagazinecargo ["15Rnd_9x19_M9",50];
_this addmagazinecargo ["15Rnd_9x19_M9SD",50];
_this addmagazinecargo ["ACE_33Rnd_9x19_G18",50];
_this addmagazinecargo ["ACE_17Rnd_9x19_G17",50];
_this addmagazinecargo ["20Rnd_556x45_Stanag",50];
_this addmagazinecargo ["30Rnd_556x45_Stanag",50];
_this addmagazinecargo ["ACE_30Rnd_556x45_T_Stanag",50];
_this addmagazinecargo ["30Rnd_556x45_StanagSD",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_B_FAL",50];
_this addmagazinecargo ["ACE_30Rnd_762x51_B_FAL",50];
_this addmagazinecargo ["30Rnd_556x45_G36",50];
_this addmagazinecargo ["200Rnd_556x45_M249",50];
_this addmagazinecargo ["ACE_200Rnd_556x45_T_M249",50];
_this addmagazinecargo ["100Rnd_556x45_BetaCMag",50];
_this addmagazinecargo ["8Rnd_B_Beneli_74Slug",50];
_this addmagazinecargo ["ACE_8Rnd_12Ga_Slug",50];
_this addmagazinecargo ["ACE_8Rnd_12Ga_Buck00",50];
_this addmagazinecargo ["ACE_9Rnd_12Ga_Slug",50];
_this addmagazinecargo ["ACE_9Rnd_12Ga_Buck00",50];
_this addmagazinecargo ["5Rnd_762x51_M24",50];
_this addmagazinecargo ["ACE_5Rnd_762x51_T_M24",50];
_this addmagazinecargo ["20Rnd_762x51_DMR",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_T_DMR",50];
_this addmagazinecargo ["10Rnd_127x99_M107",3];
_this addmagazinecargo ["ACE_10Rnd_127x99_T_m107",3];
_this addmagazinecargo ["ACE_5Rnd_25x59_HEDP_Barrett",3];
_this addmagazinecargo ["ACE_20Rnd_762x51_SB_M110",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_S_M110",50];
_this addmagazinecargo ["ACE_20Rnd_762x51_T_M110",50];
_this addmagazinecargo ["ACE_5Rnd_127x99_B_TAC50",3];
_this addmagazinecargo ["ACE_5Rnd_127x99_S_TAC50",3];
_this addmagazinecargo ["ACE_5Rnd_127x99_T_TAC50",3];
_this addmagazinecargo ["100Rnd_762x51_M240",50];
_this addmagazinecargo ["1Rnd_HE_M203",50];
_this addmagazinecargo ["ace_1rnd_cs_m203",50];
_this addmagazinecargo ["ACE_6Rnd_40mm_M32",50];
_this addmagazinecargo ["FlareWhite_M203",50];
_this addmagazinecargo ["FlareGreen_M203",50];
_this addmagazinecargo ["FlareRed_M203",50];
_this addmagazinecargo ["ACE_SSWhite_M203",50];
_this addmagazinecargo ["ACE_SSGreen_M203",50];
_this addmagazinecargo ["ACE_SSRed_M203",50];
_this addmagazinecargo ["ACE_SSYellow_M203",50];
_this addmagazinecargo ["1Rnd_SmokeRed_M203",50];
_this addmagazinecargo ["1Rnd_SmokeGreen_M203",50];
_this addmagazinecargo ["1Rnd_SmokeYellow_M203",50];
_this addmagazinecargo ["1Rnd_Smoke_M203",50];
_this addMagazineCargo ["ACE_SSWhite_FG",50];
_this addMagazineCargo ["ACE_SSRed_FG",50];
_this addMagazineCargo ["ACE_SSGreen_FG",50];
_this addMagazineCargo ["ACE_SSYellow_FG",50];
_this addmagazinecargo ["M136",10];
_this addmagazinecargo ["SMAW_HEAA",3];
_this addmagazinecargo ["SMAW_HEDP",3];
_this addmagazinecargo ["ACE_SMAW_Spotting",30];
_this addmagazinecargo ["Pipebomb",30];
_this addmagazinecargo ["Mine",30];
_this addmagazinecargo ["ACE_Claymore_M",30];
_this addmagazinecargo ["ACE_BBetty_M",30];
_this addmagazinecargo ["ACE_TripFlare_M",30];
_this addmagazinecargo ["Laserbatteries",20];
_this addmagazinecargo ["JAVELIN",1];
_this addmagazinecargo ["STINGER",2];
_this addmagazinecargo ["30Rnd_545x39_AK",50];
_this addmagazinecargo ["30Rnd_762x39_AK47",50];
_this addmagazinecargo ["FlareWhite_GP25",50];
_this addmagazinecargo ["FlareGreen_GP25",50];
_this addmagazinecargo ["FlareRed_GP25",50];
_this addmagazinecargo ["FlareYellow_GP25",50];
_this addmagazinecargo ["1Rnd_HE_GP25",50];
_this addmagazinecargo ["SmokeShellRed",50];
_this addmagazinecargo ["SmokeShellGreen",50];
_this addmagazinecargo ["SmokeShell",50];


if (true) exitWith {};

Share this post


Link to post
Share on other sites

Nevermind you already found it

Share this post


Link to post
Share on other sites
Nevermind you already found it

Lucky it was that easy, I thought I might have spelt something wrong LOL, I would have never found it :eek:

Share this post


Link to post
Share on other sites

I think you mistakenly put Sandbags and C4 as weapons instead of magazines.

Here is my version written to help reduce syntax errors:

/*
Run this script from the INIT line of an ammo crate:

Nul = [this] execVM "ammo.sqf";

//==================================================================
//	DO NOT EDIT THIS SECTION
*/	_wepset = [];
#define WEP(wep,num) _wepset = _wepset + [[##wep,##num]];
_magset = [];
#define MAG(mag,num) _magset = _magset + [[##mag,##num]];
//===================================================================

//WEAPONS//
WEP("ACE_ParachutePack",50)
WEP("M9",15)
WEP("M9SD",15)
WEP("Colt1911",15)
WEP("ACE_Glock17",15)
WEP("ACE_Glock18",15)
WEP("ACE_Flaregun",15)
WEP("M16A2",15)
WEP("M16A2GL",15)
WEP("M16A4",15)
WEP("M16A4_GL",15)
WEP("M16A4_ACG",15)
WEP("M16A4_ACG_GL",15)
WEP("ACE_M16A4_Iron",15)
WEP("M4A1",15)
WEP("ACE_M4A1_GL",15)
WEP("ACE_M4A1_GL_SD",15)
WEP("M4A1_HWS_GL",15)
WEP("M4A1_HWS_GL_camo",15)
WEP("M4A1_HWS_GL_SD_Camo",15)
WEP("M4A1_RCO_GL",15)
WEP("M4A1_Aim",15)
WEP("M4A1_Aim_camo",15)
WEP("M4A1_AIM_SD_camo",15)
WEP("ACE_SOC_M4A1_Aim",15)
WEP("ACE_SOC_M4A1_AIM_SD",15)
WEP("ACE_SOC_M4A1_GL",15)
WEP("ACE_SOC_M4A1",15)
WEP("ACE_SOC_M4A1_GL_SD",15)
WEP("ACE_SOC_M4A1_Eotech",15)
WEP("ACE_SOC_M4A1_GL_13",15)
WEP("ACE_SOC_M4A1_GL_EOTECH",15)
WEP("ACE_SOC_M4A1_SD_9",15)
WEP("ACE_SOC_M4A1_SHORTDOT",15)
WEP("ACE_SOC_M4A1_SHORTDOT_SD",15)
WEP("ACE_SOC_M4A1_RCO_GL",15)
WEP("ACE_SOC_M4A1_GL_AIMPOINT",15)
WEP("ACE_M4A1_ACOG",15)
WEP("ACE_M4A1_ACOG_SD",15)
WEP("ACE_M4A1_Aim_SD",15)
WEP("ACE_M4A1_Eotech",15)
WEP("ACE_FAL_Para",15)
WEP("ACE_SA58",15)
WEP("G36a",10)
WEP("G36c",10)
WEP("G36_C_SD_eotech",10)
WEP("G36k",10)
WEP("M1014",10)
WEP("MP5A5",10)
WEP("MP5SD",10)
WEP("ACE_MP5A4",10)
WEP("ACE_UMP45",10)
WEP("ACE_UMP45_SD",10)
WEP("M8_carbine",10)
WEP("M8_carbineGL",10)
WEP("M8_compact",10)
WEP("MG36",10)
WEP("Mk_48",10)
WEP("M240",10)
WEP("ACE_M240G_M145",10)
WEP("ACE_M60",10)
WEP("M249",10)
WEP("ACE_M249Para",10)
WEP("ACE_M249Para_M145",10)
WEP("M8_SAW",10)
WEP("M24",10)
WEP("DMR",10)
WEP("M107",10)
WEP("M40A3",10)
WEP("M4SPR",10)
WEP("ACE_M4SPR_SD",10)
WEP("M8_sharpshooter",10)
WEP("ACE_M109",10)
WEP("ACE_M110",10)
WEP("ACE_M110_SD",10)
WEP("ACE_TAC50",10)
WEP("ACE_TAC50_SD",10)
WEP("M136",10)
WEP("SMAW",10)
WEP("ACE_M32",10)
WEP("ACE_M79",10)
WEP("ACE_GlassesSpectacles",10)
WEP("ACE_GlassesRoundGlasses",10)
WEP("ACE_GlassesSunglasses",10)
WEP("ACE_GlassesBlackSun",10)
WEP("ACE_GlassesBlueSun",10)
WEP("ACE_GlassesRedSun",10)
WEP("ACE_GlassesGreenSun",10)
WEP("ACE_GlassesLHD_glasses",10)
WEP("ACE_GlassesLHD_glasses",10)
WEP("ACE_GlassesTactical",10)
WEP("ACE_GlassesGasMask_US",10)
WEP("ACE_GlassesBalaklava",10)
WEP("ACE_Earplugs",10)
WEP("Laserdesignator",10)
WEP("ACE_Rangefinder_OD",10)
WEP("Binocular",10)
WEP("NVGoggles",10)
WEP("JAVELIN",10)
WEP("STINGER",10)
WEP("AK_107_kobra",10)
WEP("AK_107_GL_kobra",10)
WEP("AK_107_GL_pso",10)
WEP("AK_107_pso",10)
WEP("AK_74",10)
WEP("AK_74_GL",10)
WEP("ACE_Spottingscope",10)
WEP("ACE_Wirecutter",10)
WEP("ACE_ParachuteRoundPack",10)
WEP("ACE_USP",10)
WEP("ACE_USPSD",10)
WEP("ACE_P226",10)
WEP("ACE_Kestrel4500",10)

//AMMO//
MAG("ACE_Sandbag_Magazine",100)
MAG("ACE_C4_M",10)
MAG("ACE_15Rnd_9x19_USP",50)
MAG("ACE_15Rnd_9x19_USPSD",50)
MAG("ACE_Battery_Rangefinder",50)
MAG("HandGrenade_West",50)
MAG("HandGrenade_Stone",50)
MAG("Smokeshell",50)
MAG("Smokeshellred",50)
MAG("Smokeshellgreen",50)
MAG("SmokeShellYellow",50)
MAG("SmokeShellOrange",50)
MAG("SmokeShellPurple",50)
MAG("ace_flashbang",50)
MAG("ace_m84",50)
MAG("ace_m7a3",50)
MAG("ace_m34",50)
MAG("ACE_IRStrobe",50)
MAG("ACE_M86PDM",50)
MAG("ACE_M2SLAM_M",50)
MAG("30Rnd_9x19_MP5",50)
MAG("30Rnd_9x19_MP5SD",50)
MAG("ACE_25Rnd_1143x23_B_UMP45",50)
MAG("7Rnd_45ACP_1911",50)
MAG("15Rnd_9x19_M9",50)
MAG("15Rnd_9x19_M9SD",50)
MAG("ACE_33Rnd_9x19_G18",50)
MAG("ACE_17Rnd_9x19_G17",50)
MAG("20Rnd_556x45_Stanag",50)
MAG("30Rnd_556x45_Stanag",50)
MAG("ACE_30Rnd_556x45_T_Stanag",50)
MAG("30Rnd_556x45_StanagSD",50)
MAG("ACE_20Rnd_762x51_B_FAL",50)
MAG("ACE_30Rnd_762x51_B_FAL",50)
MAG("30Rnd_556x45_G36",50)
MAG("200Rnd_556x45_M249",50)
MAG("ACE_200Rnd_556x45_T_M249",50)
MAG("100Rnd_556x45_BetaCMag",50)
MAG("8Rnd_B_Beneli_74Slug",50)
MAG("ACE_8Rnd_12Ga_Slug",50)
MAG("ACE_8Rnd_12Ga_Buck00",50)
MAG("ACE_9Rnd_12Ga_Slug",50)
MAG("ACE_9Rnd_12Ga_Buck00",50)
MAG("5Rnd_762x51_M24",50)
MAG("ACE_5Rnd_762x51_T_M24",50)
MAG("20Rnd_762x51_DMR",50)
MAG("ACE_20Rnd_762x51_T_DMR",50)
MAG("10Rnd_127x99_M107",3)
MAG("ACE_10Rnd_127x99_T_m107",3)
MAG("ACE_5Rnd_25x59_HEDP_Barrett",3)
MAG("ACE_20Rnd_762x51_SB_M110",50)
MAG("ACE_20Rnd_762x51_S_M110",50)
MAG("ACE_20Rnd_762x51_T_M110",50)
MAG("ACE_5Rnd_127x99_B_TAC50",3)
MAG("ACE_5Rnd_127x99_S_TAC50",3)
MAG("ACE_5Rnd_127x99_T_TAC50",3)
MAG("100Rnd_762x51_M240",50)
MAG("1Rnd_HE_M203",50)
MAG("ace_1rnd_cs_m203",50)
MAG("ACE_6Rnd_40mm_M32",50)
MAG("FlareWhite_M203",50)
MAG("FlareGreen_M203",50)
MAG("FlareRed_M203",50)
MAG("ACE_SSWhite_M203",50)
MAG("ACE_SSGreen_M203",50)
MAG("ACE_SSRed_M203",50)
MAG("ACE_SSYellow_M203",50)
MAG("1Rnd_SmokeRed_M203",50)
MAG("1Rnd_SmokeGreen_M203",50)
MAG("1Rnd_SmokeYellow_M203",50)
MAG("1Rnd_Smoke_M203",50)
MAG("ACE_SSWhite_FG",50)
MAG("ACE_SSRed_FG",50)
MAG("ACE_SSGreen_FG",50)
MAG("ACE_SSYellow_FG",50)
MAG("M136",10)
MAG("SMAW_HEAA",3)
MAG("SMAW_HEDP",3)
MAG("ACE_SMAW_Spotting",30)
MAG("Pipebomb",30)
MAG("Mine",30)
MAG("ACE_Claymore_M",30)
MAG("ACE_BBetty_M",30)
MAG("ACE_TripFlare_M",30)
MAG("Laserbatteries",20)
MAG("JAVELIN",1)
MAG("STINGER",2)
MAG("30Rnd_545x39_AK",50)
MAG("30Rnd_762x39_AK47",50)
MAG("FlareWhite_GP25",50)
MAG("FlareGreen_GP25",50)
MAG("FlareRed_GP25",50)
MAG("FlareYellow_GP25",50)
MAG("1Rnd_HE_GP25",50)
MAG("SmokeShellRed",50)
MAG("SmokeShellGreen",50)
MAG("SmokeShell",50)



// DO NOT EDIT BELOW THIS LINE

if((typeName _this) == "ARRAY") then {
{
	_crate = _x;
	clearMagazineCargo _crate;
	clearWeaponCargo _crate;
	{_crate addWeaponCargo [_x select 0, _x select 1]} forEach _wepset;
	{_crate addMagazineCargo [_x select 0, _x select 1]} forEach _magset;
} forEach _this;
} else {
clearMagazineCargo _this;
clearWeaponCargo _this;
{_this addWeaponCargo [_x select 0, _x select 1]} forEach _wepset;
{_this addMagazineCargo [_x select 0, _x select 1]} forEach _magset;
};

Edited by tcp

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  

×