Griffin64 0 Posted July 10, 2009 (edited) Hi everyone, I'm new to ArmA 2 editing and have a question about custom ammo crates. I know there's some pre-made scripts on armaholic, but I have no idea how to create my own scripts for custom crates. ArmA Edit is outdated and there's no ArmA 2 weapons in it. Can someone please help me out with this? *Edit* I hope this is the right section, I apologize if it isn't. Edited July 10, 2009 by Griffin64 Share this post Link to post Share on other sites
Redfield-77 10 Posted July 10, 2009 Here you go. http://www.armatechsquad.com/ArmA2Class/ Share this post Link to post Share on other sites
Griffin64 0 Posted July 10, 2009 (edited) Here you go. http://www.armatechsquad.com/ArmA2Class/ I actually don't think I explained my problem correctly, sorry :(. Basically, I want to be able to put in specific weapons and ammo into ammo crates and assign it to a crate in-game. I'm not exactly sure how to enter that info into arma edit or whatever program that needs to be used. Edited July 10, 2009 by Griffin64 Share this post Link to post Share on other sites
Lincoln1stFJ 10 Posted July 20, 2009 I made one for A2 using an old ver of ArmA Edit and classnames from this post. It seems to work but doesn't have all the weapons. The bold statement tells you how to include the call in the initialization line in the object editor. Script name: Universal_Crate.sqs ;************************************************************** ; Custom crate script for Armed Assault ; Created with ArmA Edit - Version 1.3.4000 [b]; HELP: Run this script from the INITIALIZATION box of the crate. ; CODE: [this] exec "Universal_Crate.sqs"[/b] ; **************************************************************** ; Get the crate parameter given _crate = _this select 0 ; Add the items to the crate _crate addWeaponCargo ["AK_107_kobra", 200] _crate addMagazineCargo ["30Rnd_545x39_AK", 200] _crate addWeaponCargo ["Binocular", 200] _crate addWeaponCargo ["NVGoggles", 200] _crate addWeaponCargo ["PipeBomb", 200] _crate addWeaponCargo ["Laserdesignator", 200] _crate addWeaponCargo ["Laserbatteries", 200] _crate addWeaponCargo ["AK_74", 200] _crate addMagazineCargo ["30Rnd_545x39_AK", 200] _crate addWeaponCargo ["M1014", 200] _crate addMagazineCargo ["8Rnd_B_Beneli_74Slug", 200] _crate addWeaponCargo ["M16A2", 200] _crate addMagazineCargo ["30Rnd_556x45_Stanag", 500] _crate addWeaponCargo ["MP5A5", 200] _crate addMagazineCargo ["30Rnd_9x19_MP5", 200] _crate addWeaponCargo ["MP5SD", 200] _crate addMagazineCargo ["30Rnd_9x19_MP5SD", 200] _crate addWeaponCargo ["M8_carbine", 200] _crate addMagazineCargo ["30Rnd_556x45_G36", 200] _crate addWeaponCargo ["G36C", 200] _crate addMagazineCargo ["30Rnd_556x45_G36", 200] _crate addWeaponCargo ["M16A2GL", 200] _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200] _crate addWeaponCargo ["MG36", 200] _crate addMagazineCargo ["100Rnd_556x45_BetaCMag", 200] _crate addWeaponCargo ["M249", 200] _crate addMagazineCargo ["200Rnd_556x45_M249", 200] _crate addWeaponCargo ["PK", 200] _crate addMagazineCargo ["100Rnd_762x54_PK", 200] _crate addWeaponCargo ["Huntingrifle", 200] _crate addMagazineCargo ["5x_22_LR_17_HMR", 200] _crate addWeaponCargo ["DMR", 200] _crate addMagazineCargo ["20Rnd_762x51_DMR", 200] _crate addWeaponCargo ["KSVK", 200] _crate addMagazineCargo ["5Rnd_127x108_KSVK", 200] _crate addWeaponCargo ["M107", 200] _crate addMagazineCargo ["10Rnd_127x99_m107", 200] _crate addWeaponCargo ["M24", 200] _crate addMagazineCargo ["5Rnd_762x51_M24", 200] _crate addWeaponCargo ["M40A3", 200] _crate addMagazineCargo ["5Rnd_762x51_M24", 200] _crate addWeaponCargo ["SVD_CAMO", 200] _crate addMagazineCargo ["10Rnd_762x54_SVD", 200] _crate addWeaponCargo ["M8_sharpshooter", 200] _crate addMagazineCargo ["30Rnd_556x45_G36", 200] _crate addWeaponCargo ["Colt1911", 200] _crate addMagazineCargo ["7Rnd_45ACP_1911", 200] _crate addWeaponCargo ["M9", 200] _crate addMagazineCargo ["15Rnd_9x19_M9", 200] _crate addWeaponCargo ["M9SD", 200] _crate addMagazineCargo ["15Rnd_9x19_M9SD", 200] _crate addWeaponCargo ["MakarovSD", 200] _crate addMagazineCargo ["8Rnd_9x18_MakarovSD", 200] _crate addWeaponCargo ["Makarov", 200] _crate addMagazineCargo ["8Rnd_9x18_Makarov", 200] _crate addWeaponCargo ["M136", 200] _crate addMagazineCargo ["M136", 200] _crate addWeaponCargo ["RPG18", 200] _crate addMagazineCargo ["RPG18", 200] _crate addWeaponCargo ["SMAW", 200] _crate addMagazineCargo ["SMAW_HEAA", 200] _crate addMagazineCargo ["SMAW_HEDP", 200] _crate addWeaponCargo ["RPG7V", 200] _crate addMagazineCargo ["RPG7V", 200] _crate addMagazineCargo ["SmokeShell", 200] _crate addMagazineCargo ["SmokeShellRed", 200] _crate addMagazineCargo ["SmokeShellGreen", 200] _crate addMagazineCargo ["SmokeShellYellow", 200] _crate addMagazineCargo ["SmokeShellOrange", 200] _crate addMagazineCargo ["SmokeShellPurple", 200] _crate addWeaponCargo ["SVD", 200] _crate addMagazineCargo ["10Rnd_762x54_SVD", 200] _crate addWeaponCargo ["VSS_vintorez", 200] _crate addMagazineCargo ["20Rnd_9x39_SP5_VSS", 200] _crate addWeaponCargo ["G36_C_SD_eotech", 200] _crate addMagazineCargo ["30Rnd_556x45_G36SD", 200] _crate addWeaponCargo ["Bizon", 200] _crate addMagazineCargo ["64Rnd_9x19_Bizon", 200] _crate addWeaponCargo ["AK_107_pso", 200] _crate addMagazineCargo ["30Rnd_545x39_AK", 200] Exit Share this post Link to post Share on other sites
Eclipse4349 0 Posted July 22, 2009 I have a script that I found in these forums, from an author I cannot remember, that is an ammo fill script. Very easy to use, just put the script in your mission folder and put the execution code into the crate's init line. It fills the crate with EVERY weapon and ammo type, and every item, and also replenishes the crate at whatever interval you have specified in the script. I actually took this script, copied it to two more scripts and renamed them, and also renamed the exec line for each. I then edited the list of contents so that only Russian weapons and ammo are in one, and only US weapons and ammo in the other. I can post all three if you are interested. Searching the forums for "ammo fill" should turn up the original script I am referring to. I THINK it was written and/or submitted by Monty67T, now that I think about it. Thanks Monty! Share this post Link to post Share on other sites
Perrinmajor 10 Posted July 24, 2009 I would very much apprecate it please do Share this post Link to post Share on other sites
Eclipse4349 0 Posted July 24, 2009 - PLACE THE AMMO.SQF FILE IN YOUR MISSION FOLDER- IN THE INITIALIZATION BLOCK OF AN AMMO CRATE OR VEHICLE TYPE THE FOLLOWING: null0 = this execVM "ammo.sqf" - THIS WILL FILL THE AMMO CRATE WITH ALL WEAPONS, AMMO, AND EQUIPMENT AUTHOR: Monty CONTACT: monty67t@msn.com FORUMS: http://specialopscommand.proboards.com/ while {alive _this} do { clearweaponcargo _this; clearmagazinecargo _this; //BIS WEAPONS// _this addWeaponCargo ["AK_107_kobra",20]; _this addWeaponCargo ["AK_107_GL_kobra",20]; _this addWeaponCargo ["AK_107_GL_pso",20]; _this addWeaponCargo ["AK_107_pso",20]; _this addWeaponCargo ["AK_74",20]; _this addWeaponCargo ["AK_74_GL",20]; _this addWeaponCargo ["AK_47_M",20]; _this addWeaponCargo ["AK_47_S",20]; _this addWeaponCargo ["AKS_74_kobra",20]; _this addWeaponCargo ["AKS_74_pso",20]; _this addWeaponCargo ["AKS_74_U",20]; _this addWeaponCargo ["AKS_74_UN_kobra",20]; _this addWeaponCargo ["Bizon",20]; _this addWeaponCargo ["bizon_silenced",20]; _this addWeaponCargo ["G36a",20]; _this addWeaponCargo ["G36C",20]; _this addWeaponCargo ["G36_C_SD_eotech",20]; _this addWeaponCargo ["G36K",20]; _this addWeaponCargo ["M1014",20]; _this addWeaponCargo ["M16A2",20]; _this addWeaponCargo ["M16A2GL",20]; _this addWeaponCargo ["M16A4",20]; _this addWeaponCargo ["M16A4_GL",20]; _this addWeaponCargo ["M16A4_ACG_GL",20]; _this addWeaponCargo ["M16A4_ACG",20]; _this addWeaponCargo ["M4A1",20]; _this addWeaponCargo ["M4A1_HWS_GL",20]; _this addWeaponCargo ["M4A1_HWS_GL_camo",20]; _this addWeaponCargo ["M4A1_HWS_GL_SD_Camo",20]; _this addWeaponCargo ["M4A1_RCO_GL",20]; _this addWeaponCargo ["M4A1_Aim",20]; _this addWeaponCargo ["M4A1_Aim_camo",20]; _this addWeaponCargo ["M4A1_AIM_SD_camo",20]; _this addWeaponCargo ["MP5A5",20]; _this addWeaponCargo ["MP5SD",20]; _this addWeaponCargo ["Saiga12K",20]; _this addWeaponCargo ["VSS_vintorez",20]; _this addWeaponCargo ["M8_carbine",20]; _this addWeaponCargo ["M8_carbineGL",20]; _this addWeaponCargo ["M8_compact",20]; _this addWeaponCargo ["MG36",20]; _this addWeaponCargo ["Mk_48",20]; _this addWeaponCargo ["M240",20]; _this addWeaponCargo ["M249",20]; _this addWeaponCargo ["Pecheneg",20]; _this addWeaponCargo ["PK",20]; _this addWeaponCargo ["RPK_74",20]; _this addWeaponCargo ["M8_SAW",20]; _this addWeaponCargo ["Huntingrifle",20]; _this addWeaponCargo ["DMR",20]; _this addWeaponCargo ["KSVK",20]; _this addWeaponCargo ["M107",20]; _this addWeaponCargo ["M24",20]; _this addWeaponCargo ["M40A3",20]; _this addWeaponCargo ["M4SPR",20]; _this addWeaponCargo ["SVD",20]; _this addWeaponCargo ["SVD_CAMO",20]; _this addWeaponCargo ["M8_sharpshooter",20]; _this addWeaponCargo ["Colt1911",20]; _this addWeaponCargo ["M9",20]; _this addWeaponCargo ["M9SD",20]; _this addWeaponCargo ["Makarov",20]; _this addWeaponCargo ["MakarovSD",20]; _this addWeaponCargo ["Igla",20]; _this addWeaponCargo ["Javelin",20]; _this addWeaponCargo ["M136",20]; _this addWeaponCargo ["MetisLauncher",20]; _this addWeaponCargo ["RPG18",20]; _this addWeaponCargo ["RPG7V",20]; _this addWeaponCargo ["SMAW",20]; _this addWeaponCargo ["Stinger",20]; _this addWeaponCargo ["Strela",20]; _this addWeaponCargo ["Binocular",20]; _this addWeaponCargo ["NVGoggles",20]; _this addWeaponCargo ["Laserdesignator",10]; //BIS AMMO// _this addMagazineCargo ["30Rnd_545x39_AK",100]; _this addMagazineCargo ["30Rnd_545x39_AKSD",100]; _this addMagazineCargo ["30Rnd_762x39_AK47",100]; _this addMagazineCargo ["64Rnd_9x19_Bizon",100]; _this addMagazineCargo ["64Rnd_9x19_SD_Bizon",100]; _this addMagazineCargo ["30Rnd_556x45_G36",100]; _this addMagazineCargo ["30Rnd_556x45_G36SD",100]; _this addMagazineCargo ["8Rnd_B_Beneli_74Slug",100]; _this addMagazineCargo ["30Rnd_556x45_Stanag",100]; _this addMagazineCargo ["30Rnd_556x45_StanagSD",100]; _this addMagazineCargo ["30Rnd_9x19_MP5",100]; _this addMagazineCargo ["30Rnd_9x19_MP5SD",100]; _this addMagazineCargo ["8Rnd_B_Saiga12_74Slug",100]; _this addMagazineCargo ["10Rnd_9x39_SP5_VSS",100]; _this addMagazineCargo ["20Rnd_9x39_SP5_VSS",100]; _this addMagazineCargo ["1Rnd_HE_GP25",100]; _this addMagazineCargo ["FlareWhite_GP25",100]; _this addMagazineCargo ["FlareGreen_GP25",100]; _this addMagazineCargo ["FlareRed_GP25",100]; _this addMagazineCargo ["FlareYellow_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKE_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKERED_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKEGREEN_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKEYELLOW_GP25",100]; _this addMagazineCargo ["1Rnd_HE_M203",100]; _this addMagazineCargo ["FlareWhite_M203",100]; _this addMagazineCargo ["FlareGreen_M203",100]; _this addMagazineCargo ["FlareRed_M203",100]; _this addMagazineCargo ["FlareYellow_M203",100]; _this addMagazineCargo ["1Rnd_Smoke_M203",100]; _this addMagazineCargo ["1Rnd_SmokeRed_M203",100]; _this addMagazineCargo ["1Rnd_SmokeGreen_M203",100]; _this addMagazineCargo ["1Rnd_SmokeYellow_M203",100]; _this addMagazineCargo ["100Rnd_556x45_BetaCMag",100]; _this addMagazineCargo ["100Rnd_762x51_M240",100]; _this addMagazineCargo ["200Rnd_556x45_M249",100]; _this addMagazineCargo ["100Rnd_762x54_PK",100]; _this addMagazineCargo ["75Rnd_545x39_RPK",100]; _this addMagazineCargo ["5x_22_LR_17_HMR",100]; _this addMagazineCargo ["20Rnd_762x51_DMR",100]; _this addMagazineCargo ["5Rnd_127x108_KSVK",100]; _this addMagazineCargo ["10Rnd_127x99_m107",100]; _this addMagazineCargo ["5Rnd_762x51_M24",100]; _this addMagazineCargo ["20Rnd_556x45_Stanag",100]; _this addMagazineCargo ["10Rnd_762x54_SVD",100]; _this addMagazineCargo ["7Rnd_45ACP_1911",100]; _this addMagazineCargo ["15Rnd_9x19_M9",100]; _this addMagazineCargo ["15Rnd_9x19_M9SD",100]; _this addMagazineCargo ["8Rnd_9x18_Makarov",100]; _this addMagazineCargo ["8Rnd_9x18_MakarovSD",100]; _this addMagazineCargo ["Igla",20]; _this addMagazineCargo ["Javelin",20]; _this addMagazineCargo ["M136",20]; _this addMagazineCargo ["AT13",20]; _this addMagazineCargo ["RPG18",20]; _this addMagazineCargo ["PG7V",20]; _this addMagazineCargo ["PG7VL",20]; _this addMagazineCargo ["PG7VR",20]; _this addMagazineCargo ["OG7",20]; _this addMagazineCargo ["SMAW_HEAA",20]; _this addMagazineCargo ["SMAW_HEDP",20]; _this addMagazineCargo ["Stinger",20]; _this addMagazineCargo ["Strela",20]; _this addMagazineCargo ["HandGrenade",50]; _this addMagazineCargo ["HandGrenade_West",50]; _this addMagazineCargo ["HandGrenade_East",50]; _this addMagazineCargo ["SmokeShell",50]; _this addMagazineCargo ["SmokeShellRed",50]; _this addMagazineCargo ["SmokeShellGreen",50]; _this addMagazineCargo ["SmokeShellYellow",50]; _this addMagazineCargo ["TimeBomb",50]; _this addMagazineCargo ["PipeBomb",50]; _this addMagazineCargo ["Mine",50]; _this addMagazineCargo ["MineE",50]; _this addMagazineCargo ["HandGrenade_Stone",50]; _this addMagazineCargo ["Laserbatteries",50]; sleep 1800; }; And now the one's I seperated that one into to give only each sides weapons and ammo: Instructions save the russian ammo fill script as ammo_rus.sqf, and the US script as ammo_us.sqf, and place both files in your mission's folder. Place this line into a crate or vehicle to be loaded with Russian weapons and ammo: null0 = this execVM "ammo_rus.sqf" Place this line into a crate or vehicle to be loaded with US weapons and ammo: null0 = this execVM "ammo_us.sqf" If there are any other lines you need to add to the objects init, seperate it with a semicolon. Russian while {alive _this} do { clearweaponcargo _this; clearmagazinecargo _this; //BIS WEAPONS// _this addWeaponCargo ["AK_107_kobra",20]; _this addWeaponCargo ["AK_107_GL_kobra",20]; _this addWeaponCargo ["AK_107_GL_pso",20]; _this addWeaponCargo ["AK_107_pso",20]; _this addWeaponCargo ["AK_74",20]; _this addWeaponCargo ["AK_74_GL",20]; _this addWeaponCargo ["AK_47_M",20]; _this addWeaponCargo ["AK_47_S",20]; _this addWeaponCargo ["AKS_74_kobra",20]; _this addWeaponCargo ["AKS_74_pso",20]; _this addWeaponCargo ["AKS_74_U",20]; _this addWeaponCargo ["AKS_74_UN_kobra",20]; _this addWeaponCargo ["Bizon",20]; _this addWeaponCargo ["bizon_silenced",20]; _this addWeaponCargo ["Saiga12K",20]; _this addWeaponCargo ["VSS_vintorez",20]; _this addWeaponCargo ["Pecheneg",20]; _this addWeaponCargo ["PK",20]; _this addWeaponCargo ["RPK_74",20]; _this addWeaponCargo ["Huntingrifle",20]; _this addWeaponCargo ["KSVK",20]; _this addWeaponCargo ["SVD",20]; _this addWeaponCargo ["SVD_CAMO",20]; _this addWeaponCargo ["Makarov",20]; _this addWeaponCargo ["MakarovSD",20]; _this addWeaponCargo ["Igla",20]; _this addWeaponCargo ["MetisLauncher",20]; _this addWeaponCargo ["RPG18",20]; _this addWeaponCargo ["RPG7V",20]; _this addWeaponCargo ["Strela",20]; _this addWeaponCargo ["Binocular",20]; _this addWeaponCargo ["NVGoggles",20]; _this addWeaponCargo ["Laserdesignator",10]; //BIS AMMO// _this addMagazineCargo ["30Rnd_545x39_AK",100]; _this addMagazineCargo ["30Rnd_545x39_AKSD",100]; _this addMagazineCargo ["30Rnd_762x39_AK47",100]; _this addMagazineCargo ["64Rnd_9x19_Bizon",100]; _this addMagazineCargo ["64Rnd_9x19_SD_Bizon",100]; _this addMagazineCargo ["30Rnd_556x45_Stanag",100]; _this addMagazineCargo ["30Rnd_556x45_StanagSD",100]; _this addMagazineCargo ["8Rnd_B_Saiga12_74Slug",100]; _this addMagazineCargo ["10Rnd_9x39_SP5_VSS",100]; _this addMagazineCargo ["20Rnd_9x39_SP5_VSS",100]; _this addMagazineCargo ["1Rnd_HE_GP25",100]; _this addMagazineCargo ["FlareWhite_GP25",100]; _this addMagazineCargo ["FlareGreen_GP25",100]; _this addMagazineCargo ["FlareRed_GP25",100]; _this addMagazineCargo ["FlareYellow_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKE_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKERED_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKEGREEN_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKEYELLOW_GP25",100]; _this addMagazineCargo ["1Rnd_HE_M203",100]; _this addMagazineCargo ["FlareWhite_M203",100]; _this addMagazineCargo ["FlareGreen_M203",100]; _this addMagazineCargo ["FlareRed_M203",100]; _this addMagazineCargo ["FlareYellow_M203",100]; _this addMagazineCargo ["1Rnd_Smoke_M203",100]; _this addMagazineCargo ["1Rnd_SmokeRed_M203",100]; _this addMagazineCargo ["1Rnd_SmokeGreen_M203",100]; _this addMagazineCargo ["1Rnd_SmokeYellow_M203",100]; _this addMagazineCargo ["100Rnd_556x45_BetaCMag",100]; _this addMagazineCargo ["100Rnd_762x54_PK",100]; _this addMagazineCargo ["75Rnd_545x39_RPK",100]; _this addMagazineCargo ["5x_22_LR_17_HMR",100]; _this addMagazineCargo ["5Rnd_127x108_KSVK",100]; _this addMagazineCargo ["20Rnd_556x45_Stanag",100]; _this addMagazineCargo ["10Rnd_762x54_SVD",100]; _this addMagazineCargo ["8Rnd_9x18_Makarov",100]; _this addMagazineCargo ["8Rnd_9x18_MakarovSD",100]; _this addMagazineCargo ["Igla",20]; _this addMagazineCargo ["AT13",20]; _this addMagazineCargo ["RPG18",20]; _this addMagazineCargo ["PG7V",20]; _this addMagazineCargo ["PG7VL",20]; _this addMagazineCargo ["PG7VR",20]; _this addMagazineCargo ["OG7",20]; _this addMagazineCargo ["Strela",20]; _this addMagazineCargo ["HandGrenade",50]; _this addMagazineCargo ["HandGrenade_West",50]; _this addMagazineCargo ["HandGrenade_East",50]; _this addMagazineCargo ["SmokeShell",50]; _this addMagazineCargo ["SmokeShellRed",50]; _this addMagazineCargo ["SmokeShellGreen",50]; _this addMagazineCargo ["SmokeShellYellow",50]; _this addMagazineCargo ["TimeBomb",50]; _this addMagazineCargo ["PipeBomb",50]; _this addMagazineCargo ["Mine",50]; _this addMagazineCargo ["MineE",50]; _this addMagazineCargo ["HandGrenade_Stone",50]; _this addMagazineCargo ["Laserbatteries",50]; sleep 1800; }; US while {alive _this} do { clearweaponcargo _this; clearmagazinecargo _this; //BIS WEAPONS// _this addWeaponCargo ["G36a",20]; _this addWeaponCargo ["G36C",20]; _this addWeaponCargo ["G36_C_SD_eotech",20]; _this addWeaponCargo ["G36K",20]; _this addWeaponCargo ["M1014",20]; _this addWeaponCargo ["M16A2",20]; _this addWeaponCargo ["M16A2GL",20]; _this addWeaponCargo ["M16A4",20]; _this addWeaponCargo ["M16A4_GL",20]; _this addWeaponCargo ["M16A4_ACG_GL",20]; _this addWeaponCargo ["M16A4_ACG",20]; _this addWeaponCargo ["M4A1",20]; _this addWeaponCargo ["M4A1_HWS_GL",20]; _this addWeaponCargo ["M4A1_HWS_GL_camo",20]; _this addWeaponCargo ["M4A1_HWS_GL_SD_Camo",20]; _this addWeaponCargo ["M4A1_RCO_GL",20]; _this addWeaponCargo ["M4A1_Aim",20]; _this addWeaponCargo ["M4A1_Aim_camo",20]; _this addWeaponCargo ["M4A1_AIM_SD_camo",20]; _this addWeaponCargo ["MP5A5",20]; _this addWeaponCargo ["MP5SD",20]; _this addWeaponCargo ["VSS_vintorez",20]; _this addWeaponCargo ["M8_carbine",20]; _this addWeaponCargo ["M8_carbineGL",20]; _this addWeaponCargo ["M8_compact",20]; _this addWeaponCargo ["MG36",20]; _this addWeaponCargo ["Mk_48",20]; _this addWeaponCargo ["M240",20]; _this addWeaponCargo ["M249",20]; _this addWeaponCargo ["M8_SAW",20]; _this addWeaponCargo ["DMR",20]; _this addWeaponCargo ["M107",20]; _this addWeaponCargo ["M24",20]; _this addWeaponCargo ["M40A3",20]; _this addWeaponCargo ["M4SPR",20]; _this addWeaponCargo ["M8_sharpshooter",20]; _this addWeaponCargo ["Colt1911",20]; _this addWeaponCargo ["M9",20]; _this addWeaponCargo ["M9SD",20]; _this addWeaponCargo ["Javelin",20]; _this addWeaponCargo ["M136",20]; _this addWeaponCargo ["SMAW",20]; _this addWeaponCargo ["Stinger",20]; _this addWeaponCargo ["Binocular",20]; _this addWeaponCargo ["NVGoggles",20]; _this addWeaponCargo ["Laserdesignator",10]; //BIS AMMO// _this addMagazineCargo ["30Rnd_556x45_G36",100]; _this addMagazineCargo ["30Rnd_556x45_G36SD",100]; _this addMagazineCargo ["8Rnd_B_Beneli_74Slug",100]; _this addMagazineCargo ["30Rnd_556x45_Stanag",100]; _this addMagazineCargo ["30Rnd_556x45_StanagSD",100]; _this addMagazineCargo ["30Rnd_9x19_MP5",100]; _this addMagazineCargo ["30Rnd_9x19_MP5SD",100]; _this addMagazineCargo ["10Rnd_9x39_SP5_VSS",100]; _this addMagazineCargo ["20Rnd_9x39_SP5_VSS",100]; _this addMagazineCargo ["1Rnd_HE_GP25",100]; _this addMagazineCargo ["FlareWhite_GP25",100]; _this addMagazineCargo ["FlareGreen_GP25",100]; _this addMagazineCargo ["FlareRed_GP25",100]; _this addMagazineCargo ["FlareYellow_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKE_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKERED_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKEGREEN_GP25",100]; _this addMagazineCargo ["1Rnd_SMOKEYELLOW_GP25",100]; _this addMagazineCargo ["1Rnd_HE_M203",100]; _this addMagazineCargo ["FlareWhite_M203",100]; _this addMagazineCargo ["FlareGreen_M203",100]; _this addMagazineCargo ["FlareRed_M203",100]; _this addMagazineCargo ["FlareYellow_M203",100]; _this addMagazineCargo ["1Rnd_Smoke_M203",100]; _this addMagazineCargo ["1Rnd_SmokeRed_M203",100]; _this addMagazineCargo ["1Rnd_SmokeGreen_M203",100]; _this addMagazineCargo ["1Rnd_SmokeYellow_M203",100]; _this addMagazineCargo ["100Rnd_556x45_BetaCMag",100]; _this addMagazineCargo ["100Rnd_762x51_M240",100]; _this addMagazineCargo ["200Rnd_556x45_M249",100]; _this addMagazineCargo ["5x_22_LR_17_HMR",100]; _this addMagazineCargo ["20Rnd_762x51_DMR",100]; _this addMagazineCargo ["10Rnd_127x99_m107",100]; _this addMagazineCargo ["5Rnd_762x51_M24",100]; _this addMagazineCargo ["20Rnd_556x45_Stanag",100]; _this addMagazineCargo ["7Rnd_45ACP_1911",100]; _this addMagazineCargo ["15Rnd_9x19_M9",100]; _this addMagazineCargo ["15Rnd_9x19_M9SD",100]; _this addMagazineCargo ["Javelin",20]; _this addMagazineCargo ["M136",20]; _this addMagazineCargo ["SMAW_HEAA",20]; _this addMagazineCargo ["SMAW_HEDP",20]; _this addMagazineCargo ["Stinger",20]; _this addMagazineCargo ["HandGrenade",50]; _this addMagazineCargo ["HandGrenade_West",50]; _this addMagazineCargo ["HandGrenade_East",50]; _this addMagazineCargo ["SmokeShell",50]; _this addMagazineCargo ["SmokeShellRed",50]; _this addMagazineCargo ["SmokeShellGreen",50]; _this addMagazineCargo ["SmokeShellYellow",50]; _this addMagazineCargo ["TimeBomb",50]; _this addMagazineCargo ["PipeBomb",50]; _this addMagazineCargo ["Mine",50]; _this addMagazineCargo ["MineE",50]; _this addMagazineCargo ["HandGrenade_Stone",50]; _this addMagazineCargo ["Laserbatteries",50]; sleep 1800; }; If I messed up and left any weapons or ammo in either of the scripts that doesnt belong to that side, feel free to edit it. Enjoy! Share this post Link to post Share on other sites
redrumNL 10 Posted July 25, 2009 Nicly made. but here its saying script ammo.sqf not found.. I place the files in mission folder, put in null0 = this execVM "ammo.sqf" in the INITIALIZATION BLOCK OF AN AMMO CRATE What i do wrong?? Thx so far.. Share this post Link to post Share on other sites
Eclipse4349 0 Posted July 26, 2009 you have to relaunch the game after you add a script to a mission folder, otherwise the script will not load. At least that is my understanding. If you have the script in the folder for the mission you are working on, and the line of code in the init, it should work. Make sure you are using the line of code that matches the script you added, if you are using the one's I posted. Good luck! Share this post Link to post Share on other sites
redrumNL 10 Posted July 26, 2009 Hey got it working, thanks Share this post Link to post Share on other sites
TriGGa 10 Posted September 7, 2012 and what command do i add if i want the create to restock the ammo after 1 hour? Also want to add this to an item, the aircargonet crates - vehicle="Misc_cargo_cont_net1" Share this post Link to post Share on other sites