Looks like a few other missions of mine that uses ammo scripts are broken as well. Wtf, I thought it use to work in the past when I've done it...
Code:
if (isServer) then {
clearmagazinecargoglobal _this;
clearweaponcargoglobal _this;
clearItemCargoglobal _this;
clearBackpackCargoGlobal _this;
// Weapons
_this addWeaponCargo ["CUP_arifle_AKM", 5];
_this addWeaponCargo ["CUP_arifle_AKM_GL", 1];
_this addWeaponCargo ["CUP_arifle_AK74", 5];
_this addWeaponCargo ["CUP_arifle_AK74_GL", 1];
_this addWeaponCargo ["CUP_lmg_PKM", 2];
_this addWeaponCargo ["CUP_Saiga12K", 1];
_this addWeaponCargo ["CUP_srifle_SVD_wdl_ghillie", 1];
_this addWeaponCargo ["CUP_srifle_CZ550", 2];
_this addWeaponCargo ["CUP_glaunch_6G30", 6];
// Ammo
_this addMagazineCargo ["CUP_5x_22_LR_17_HMR_M", 20];
_this addMagazineCargo ["CUP_10Rnd_762x54_SVD_M", 10];
_this addMagazineCargo ["CUP_30Rnd_545x39_AK_M", 100];
_this addMagazineCargo ["CUP_30Rnd_762x39_AK47_M", 120];
_this addMagazineCargo ["CUP_100Rnd_TE4_LRT4_762x54_PK_Tracer_Green_M", 20];
_this addMagazineCargo ["CUP_1Rnd_HE_GP25_M", 25];
_this addMagazineCargo ["CUP_6Rnd_HE_GP25_M", 36];
// Grenades & Satchels
_this addMagazineCargo ["CUP_HandGrenade_RGD5", 10];
_this addMagazineCargo ["SmokeShell", 5];
_this addMagazineCargo ["SmokeShellRed", 2];
_this addMagazineCargo ["SmokeShellGreen", 2];
_this addMagazineCargo ["APERSMine_Range_Mag", 16];
// Item
_this addItemCargo ["FirstAidKit", 10];
_this addItemCargo ["MediKit", 2];
_this addWeaponCargo ["Binocular", 1];
// Backpack
_this addBackpackCargo ["B_FieldPack_oli", 10];
// Add ACE equipments if ACE is loaded
if (isClass (configFile >> "CfgMods" >> "ace")) then {
_this addItemCargo ["ACE_EarPlugs", 10];
_this addItemCargo ["ACE_Clacker", 10];
};
};
Code:
null = this execVM "scripts\ammobox\ammo.sqf";