Jump to content
  • 0

static ammo crates


argleb

Question

Hello, new to the forums, been searching but aparently not very good for info on the issue im having at hand, 

 

Trying to get my static ammo crate for wicked ai to spawn the loot in it i have chosen.

 

currently it will spawn in the spot I picked but with only 50 rounds of m240 and 50 rounds of m249

 

my current staticammocrates.sqf file

 

/* Add ammmo boxes to static locations on map and fills it with loot from missionCfg.sqf

 
creates a ammo box at [0,0,0] then fills it
 
_box = createVehicle ["BAF_VehicleBox",[0,0,0], [], 0, "CAN_COLLIDE"];
[_box] call spawn_ammo_box;
 
creates a 2nd ammo box at [1,1,1] then fills it
 
_box2 = createVehicle ["BAF_VehicleBox",[1,1,1], [], 0, "CAN_COLLIDE"];
[_box2] call spawn_ammo_box;
 
add custom ammo boxes below this line
*/
 
_box = createVehicle ["BAF_VehicleBox",[2802.12,6241.09,0], [], 0, "CAN_COLLIDE"];
[_box] call homburg.sqf;

 

and my homburg.sqf file it is located in WAI/missions/compile/homburg.sqf

 

//Extra Large Gun Box

 
_box = _this select 0;
_box setVariable ["ObjectID","1",true];
_box setVariable ["permaLoot",true];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_box];
 
clearWeaponCargoGlobal _box;
clearMagazineCargoGlobal _box;
 
// RIFLES
_box addWeaponCargoGlobal ["DMR_DZ", 1];
_box addWeaponCargoGlobal ["BAF_LRR_scoped_W", 1];
_box addWeaponCargoGlobal ["M4A3_RCO_GL_EP1", 1];
_box addWeaponCargoGlobal ["M110_NVG_EP1", 1];
_box addWeaponCargoGlobal ["Mk_48_DES_EP1", 1];
_box addWeaponCargoGlobal ["M14_EP1", 1];
_box addWeaponCargoGlobal ["SCAR_L_CQC_CCO_SD", 1];
_box addWeaponCargoGlobal ["SCAR_H_LNG_Sniper_SD", 1];
_box addWeaponCargoGlobal ["M60A4_EP1_DZE", 1];
_box addWeaponCargoGlobal ["AK_47_M", 1];
_box addWeaponCargoGlobal ["DMR_DZ", 2];
_box addWeaponCargoGlobal ["M40A3", 1];
_box addWeaponCargoGlobal ["M24_des_EP1", 1];
_box addWeaponCargoGlobal ["SVD", 1];
_box addWeaponCargoGlobal ["BAF_LRR_scoped", 1];
_box addWeaponCargoGlobal ["M110_NVG_EP1", 1];
 
// PISTOLS
_box addWeaponCargoGlobal ["M9", 1];
_box addWeaponCargoGlobal ["M9SD", 1];
_box addWeaponCargoGlobal ["UZI_SD_EP1", 1];
_box addWeaponCargoGlobal ["bizon_silenced", 1];
 
// AMMUNITION
_box addMagazineCargoGlobal ["20Rnd_762x51_DMR", 10];
_box addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 10];
_box addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 15];
_box addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 15];
_box addMagazineCargoGlobal ["100Rnd_762x51_M240", 10];
_box addMagazineCargoGlobal ["20Rnd_762x51_DMR", 10];
_box addMagazineCargoGlobal ["20Rnd_762x51_SB_SCAR", 10];
_box addMagazineCargoGlobal ["20Rnd_762x51_SB_SCAR", 10];
_box addMagazineCargoGlobal ["100Rnd_762x51_M240", 5];
_box addMagazineCargoGlobal ["30Rnd_762x39_AK47", 15];
_box addMagazineCargoGlobal ["15Rnd_9x19_M9SD", 20];
_box addMagazineCargoGlobal ["10Rnd_762x54_SVD", 10];
_box addMagazineCargoGlobal ["5Rnd_762x51_M24", 10];
_box addMagazineCargoGlobal ["20Rnd_762x51_DMR", 10];
_box addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 5];
_box addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 5];
_box addMagazineCargoGlobal ["15Rnd_9x19_M9", 10];
_box addMagazineCargoGlobal ["15Rnd_9x19_M9SD", 10];
_box addMagazineCargoGlobal ["30Rnd_9x19_UZI_SD", 10];
_box addMagazineCargoGlobal ["64Rnd_9x19_SD_Bizon", 10];
 
// ITEMS
_box addMagazineCargoGlobal ["ItemTopaz", 1];
 
//BACKPACKS
_box addBackpackCargoGlobal ["DZ_LargeGunBag_EP1", 2];
_box addBackpackCargoGlobal ["DZ_LargeGunBag_EP1", 2];
 
// CLOTHING
_box addMagazineCargoGlobal ["Skin_Drake_Light_DZ", 2];
_box addMagazineCargoGlobal ["Skin_Sniper1_DZ", 2];
 
// CONSTRUCTION MATERIALS
_box addMagazineCargoGlobal ["CinderBlocks", 50];
_box addMagazineCargoGlobal ["MortarBucket", 25];
_box addMagazineCargoGlobal ["PartPlywoodPack", 10];
_box addMagazineCargoGlobal ["cinder_garage_kit", 2];
_box addMagazineCargoGlobal ["PartGeneric", 10];
_box addMagazineCargoGlobal ["ItemSandbag", 15];
_box addMagazineCargoGlobal ["ItemTankTrap", 15];
_box addMagazineCargoGlobal ["forest_large_net_kit", 3];
_box addMagazineCargoGlobal ["park_bench_kit", 2];
_box addMagazineCargoGlobal ["ItemComboLock", 2];
 
// TOOLS
_box addWeaponCargoGlobal ["ItemToolbox", 2];
_box addWeaponCargoGlobal ["ItemEtool", 2];
_box addWeaponCargoGlobal ["ItemCrowbar", 2];
_box addWeaponCargoGlobal ["ItemKnife", 2];
 
//MEDICAL SUPPLIES
_box addMagazineCargoGlobal ["ItemBandage", 10];
_box addMagazineCargoGlobal ["ItemMorphine", 10];
_box addMagazineCargoGlobal ["ItemEpinephrine", 10];
_box addMagazineCargoGlobal ["ItemPainkiller", 15];
_box addMagazineCargoGlobal ["ItemWaterbottle", 10];
_box addMagazineCargoGlobal ["FoodCanBakedBeans", 15];
_box addMagazineCargoGlobal ["ItemAntibiotic", 10];
_box addMagazineCargoGlobal ["ItemBloodbag", 15];
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...