KJAM 0 Posted February 28, 2007 Could some kind soul please do a script(s) that will add specific weapons and their ammunition to weapons crates. E.G. WAB1 - Rifles (Without GL's) WAB2 - MG's WAB3 - SMG's WAB4 - Pistols WAB5 - Grenades (Including Smoke) WAB6 - Sniper Rifles WAB7 - Rifles with Grenade Launchers Thank you for your time, I would do it myself but i haven't the faintest clue when it comes to scripting. Share this post Link to post Share on other sites
DecimusAquila 0 Posted February 28, 2007 crate AddWeaponCargo ["M4AIM",6]; crate AddWeaponCargo ["M4A1",6]; crate AddWeaponCargo ["M249",6]; crate AddWeaponCargo ["M240",6]; crate AddWeaponCargo ["M9",6]; crate AddWeaponCargo ["M9SD",6]; crate AddWeaponCargo ["M4A1GL",6]; crate AddWeaponCargo ["M24",6]; crate AddWeaponCargo ["Throw",6]; crate AddWeaponCargo ["M4",6]; crate AddMagazineCargo ["30Rnd_556x45_Stanag",50]; crate AddMagazineCargo ["20Rnd_556x45_Stanag",50]; crate AddMagazineCargo ["30Rnd_556x45_StanagSD",50]; crate AddMagazineCargo ["FlareWhite_M203",50]; crate AddMagazineCargo ["FlareGreen_M203",50]; crate AddMagazineCargo ["FlareRed_M203",50]; crate AddMagazineCargo ["FlareYellow_M203",50]; crate AddMagazineCargo ["1Rnd_HE_M203",50]; crate AddMagazineCargo ["100Rnd_762x51_M240",50]; crate AddMagazineCargo ["5Rnd_762x51_M24",50]; crate AddMagazineCargo ["1Rnd_HE_M203",50]; crate AddMagazineCargo ["200Rnd_556x45_M249",50]; crate AddMagazineCargo ["1Rnd_HE_M203",50]; crate AddMagazineCargo ["SmokeShellRed",50]; crate AddMagazineCargo ["SmokeShellGreen",50]; crate AddMagazineCargo ["SmokeShell",50]; crate AddMagazineCargo ["HandGrenadeTimed",50]; crate AddMagazineCargo ["HandGrenade",50]; First click on your crate twice and name your crate to crate. Second, still open, under the ini part...copy and paste the commands there. Third click ok and done. Share this post Link to post Share on other sites
satexas69 0 Posted February 28, 2007 Use my script. Make a subdirectory in your mission called /reload and cut and paste this code into a text file called "ammobox_1.sqs". You can then call it from each crate using the directions in my script. Fast, easy, clean. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ; TO use this, put this in INIT: ; ; [ammobox_1] exec "reload\ammobox_1.sqs ; ; and put this as it's NAME: ; ; [ammobox_1] ; ; Increment the ammobox tag for each individual box: IE: [ammobox_2]... [ammobox_5]... ; Get the crate parameter given _crate = _this Select 0 ; Remove the stock items from the crate ClearMagazineCargo _crate ClearWeaponCargo _crate ; Add the items to the crate _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 ["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] Exit Share this post Link to post Share on other sites