MrWho 0 Posted March 15, 2007 Is there a command to add all weapons to ammo cases? Also looking for the code for the mk12. Could not find it on it here:http://community.bistudio.com/wiki/ArmA:_Weapons Share this post Link to post Share on other sites
fasad 1 Posted March 15, 2007 AFAIK, you will have to do it the long way. "myCrate addWeaponCargo [_x,50]" forEach ["M16A2","M16A2GL",.....] etc. Crates do have limits, in OFP : transportMaxWeapons = 500; transportMaxMagazines = 2000; Share this post Link to post Share on other sites
Balschoiw 0 Posted March 15, 2007 Just setup or use one of the existing scripts to fill up ammo crates, define the weapon you want to have in them and run the script from the init line of the corresponding crates. You should be able to use that script throughout your whole Arma career, so even if it takes some time first, it will be usefull for all those yearsa dn missions to come. Quote[/b] ]code for the mk12. Should be in ReadMe that came along with Patch 1.05 Share this post Link to post Share on other sites
MrWho 0 Posted March 15, 2007 Thanks guys, that's what I have been doing. Â So I just cut and copy from one map to anther. Â Also the ReadMe doesn't mention the mk12 at all. It shows up in the standard ammo cases, but wanted to all more and add them to other objects. So first problem solved, now just need the code for the mk12. Share this post Link to post Share on other sites
satexas69 0 Posted March 15, 2007 Quit doing stuff the hard way Here's my script. Call it "ammobox_1.sqs" and put it in a directory called "reload" inside your main mission dir. (mission/reload) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; Instructions: ; ; 1. In your mission directory, make a subdirectory called "reload" and put this ; script in it called "ammobox_1.sqs" ; ; 2. Make a crate in the game ; ; 3. PUt this as it's NAME: ammo_1 ; ; 4. Put this in the item's INIT field: [ammo_1] exec "reload\ammobox_1.sqs ; ; Increment the ammobox tag for each individual box after that first one to load others ; IE: [ammo_2]... [ammo_5]... ; NOTE - This is my USA GUNS crate ; Get the crate parameter given _crate = _this Select 0 ; REMOVE STOCK ITEMS FROM THE CRATE: ClearMagazineCargo _crate ClearWeaponCargo _crate ; ADD THE ITEMS TO THE CRATE: ; West Weapons ;_crate addweaponcargo ["M21", 50] ;_crate addmagazinecargo ["M21", 50] _crate addweaponcargo ["M9",100] _crate addweaponcargo ["M9SD",100] _crate addweaponcargo ["M16A2",100] _crate addweaponcargo ["M16A2GL",100] _crate addweaponcargo ["M4",100] _crate addweaponcargo ["M4A1SD",100] _crate addweaponcargo ["M4GL",100] _crate addweaponcargo ["M4A1",100] _crate addweaponcargo ["M4A1GL",100] _crate addweaponcargo ["M4AIM",100] _crate addweaponcargo ["M4SPR",100] _crate addweaponcargo ["G36a",100] _crate addweaponcargo ["g36c",100] _crate addweaponcargo ["g36k",100] _crate addweaponcargo ["m24",100] _crate addweaponcargo ["mp5A5",100] _crate addweaponcargo ["MP5SD",100] _crate addweaponcargo ["M240",100] _crate addweaponcargo ["M249",100] _crate addweaponcargo ["M107",100] _crate addmagazinecargo ["10Rnd_127x99_m107",100] _crate addweaponcargo ["Laserdesignator",100] _crate addweaponcargo ["Binocular",100] _crate addweaponcargo ["NVGoggles",100] _crate addmagazinecargo ["30Rnd_9x19_MP5",100] _crate addmagazinecargo ["30Rnd_9x19_MP5SD",100] _crate addmagazinecargo ["15Rnd_9x19_M9",100] _crate addmagazinecargo ["15Rnd_9x19_M9SD",100] _crate addmagazinecargo ["30Rnd_556x45_Stanag",100] _crate addmagazinecargo ["30Rnd_556x45_G36",100] _crate addmagazinecargo ["200Rnd_556x45_M249",100] _crate addmagazinecargo ["5Rnd_762x51_M24",100] _crate addmagazinecargo ["100Rnd_762x51_M240",100] _crate addmagazinecargo ["1Rnd_HE_M203",100] _crate addmagazinecargo ["Laserbatteries",100] ; East Weapons _crate addweaponcargo ["PK",100] _crate addmagazinecargo ["100Rnd_762x54_PK"] _crate addweaponcargo ["SVD",100] _crate addmagazinecargo ["10Rnd_762x54_SVD"] Exit Share this post Link to post Share on other sites
MrWho 0 Posted March 15, 2007 YES, YES, YES! Thanks satexas69! Also thanks fasad for the item code! Â Â Share this post Link to post Share on other sites