Jump to content
Sign in to follow this  
oilrag

Ammo Crates

Recommended Posts

Hello All,

Just recently purchased ARMA 2 and love it!. But I do have one question, "how do I add a ammo crate to a map?" I have read extensivly may articles avaiable regarding creates but they refer to how to spawn a crate or how to add or removw weapons, Can you add a crate from the mission editor? For the life of me I cannot work this out. Any help will be gratefully appreciated.

Thankyou

Chris

Share this post


Link to post
Share on other sites

You can place a weapons crate in the editor by double clicking to place a unit.

Under Side select "Empty"

Under Class select "Ammo"

You will then find all of the crates under the unit section.

Make sure you have already placed a player character, if not you will not be able to see the "Empty" section under "side"

Share this post


Link to post
Share on other sites

Thankyou so much ADuke, if your ever in Brisbane Australia, let me know and I will buy you afew drinks.

Cheers mate

Chris

Share this post


Link to post
Share on other sites

To fill a ammo crate with custom weapons, you can use a script like this:

/////////////////////////////////////////////////////
//
// US Weapons Ammo Crate Fill Script.
//
// Called from an ammocrate's init field via:
//   nul = this execVM "ammo.sqf";
//
/////////////////////////////////////////////////////

while {alive _this} do
{

// Remove the stock items from the crate
clearMagazineCargo _this;
clearWeaponCargo _this;

/////////////////////////////////////////////////////
// WEAPONS
/////////////////////////////////////////////////////

// Main Battle Rifles (MBR)
_this addWeaponCargo ["G36a", 100];
_this addWeaponCargo ["G36C", 100];
_this addWeaponCargo ["G36_C_SD_eotech", 100];
_this addWeaponCargo ["G36K", 100];
_this addWeaponCargo ["M1014", 100];  // Combat shotgun
_this addWeaponCargo ["M16A2", 100];
_this addWeaponCargo ["M16A2GL", 100];
_this addWeaponCargo ["M16A4", 100];
_this addWeaponCargo ["M16A4_GL", 100];
_this addWeaponCargo ["M16A4_ACG_GL", 100];
_this addWeaponCargo ["M16A4_ACG", 100];
_this addWeaponCargo ["M4A1", 100];
_this addWeaponCargo ["M4A1_HWS_GL", 100];
_this addWeaponCargo ["M4A1_HWS_GL_camo", 100];
_this addWeaponCargo ["M4A1_HWS_GL_SD_Camo", 100];
_this addWeaponCargo ["M4A1_RCO_GL", 100];
_this addWeaponCargo ["M4A1_Aim", 100];
_this addWeaponCargo ["M4A1_Aim_camo", 100];
_this addWeaponCargo ["M4A1_AIM_SD_camo", 100];
_this addWeaponCargo ["M8_carbine", 100];
_this addWeaponCargo ["M8_carbineGL", 100];
_this addWeaponCargo ["M8_compact", 100];

// Submachineguns (SMG)
_this addWeaponCargo ["MP5A5", 100];
_this addWeaponCargo ["MP5SD", 100];

// Light Machineguns (LMG)
_this addWeaponCargo ["MG36", 100];
_this addWeaponCargo ["Mk_48", 100];
_this addWeaponCargo ["M240", 100];
_this addWeaponCargo ["M249", 100];
_this addWeaponCargo ["M8_SAW", 100];

// Sniper rifles
_this addWeaponCargo ["DMR", 100];
_this addWeaponCargo ["M4SPR", 100];
_this addWeaponCargo ["M8_sharpshooter", 100];
_this addWeaponCargo ["M107", 100];
_this addWeaponCargo ["M24", 100];
_this addWeaponCargo ["M40A3", 100];

// Pistols
_this addWeaponCargo ["Colt1911", 100];
_this addWeaponCargo ["M9", 100];
_this addWeaponCargo ["M9SD", 100];

// AT & AA
_this addWeaponCargo ["Javelin", 100];
_this addWeaponCargo ["M136", 100];
_this addWeaponCargo ["SMAW", 100];
_this addWeaponCargo ["Stinger", 100];

/////////////////////////////////////////////////////
// AMMO
/////////////////////////////////////////////////////

// LMG ammo
_this addMagazineCargo ["100Rnd_556x45_BetaCMag", 100];
_this addMagazineCargo ["100Rnd_762x51_M240", 100]; // also for Mk48
_this addMagazineCargo ["200Rnd_556x45_M249", 100];

// Sniper Rifle ammo
_this addMagazineCargo ["20Rnd_762x51_DMR", 100];
_this addMagazineCargo ["10Rnd_127x99_m107", 100];
_this addMagazineCargo ["5Rnd_762x51_M24", 100];

// MBR ammo
_this addMagazineCargo ["20Rnd_556x45_Stanag", 100];
_this addMagazineCargo ["30Rnd_556x45_G36", 100];
_this addMagazineCargo ["30Rnd_556x45_G36SD", 100];
_this addMagazineCargo ["30Rnd_556x45_Stanag", 100];
_this addMagazineCargo ["30Rnd_556x45_StanagSD", 100];
_this addMagazineCargo ["8Rnd_B_Beneli_74Slug", 100];  // Combat shotgun

// SMG ammo
_this addMagazineCargo ["30Rnd_9x19_MP5", 100];
_this addMagazineCargo ["30Rnd_9x19_MP5SD", 100];

// Pistol ammo
_this addMagazineCargo ["15Rnd_9x19_M9", 100];
_this addMagazineCargo ["15Rnd_9x19_M9SD", 100];
_this addMagazineCargo ["7Rnd_45ACP_1911", 100];

// M203 ammo
_this addMagazineCargo ["1Rnd_HE_M203", 100];
_this addMagazineCargo ["1Rnd_Smoke_M203", 100];
_this addMagazineCargo ["1Rnd_SmokeGreen_M203", 100];
_this addMagazineCargo ["1Rnd_SmokeRed_M203", 100];
_this addMagazineCargo ["1Rnd_SmokeYellow_M203", 100];
_this addMagazineCargo ["FlareGreen_M203", 100];
_this addMagazineCargo ["FlareRed_M203", 100];
_this addMagazineCargo ["FlareWhite_M203", 100];
_this addMagazineCargo ["FlareYellow_M203", 100];

// AT & AA ammo
_this addMagazineCargo ["Javelin", 100];
_this addMagazineCargo ["M136", 100];
_this addMagazineCargo ["SMAW_HEAA", 100];
_this addMagazineCargo ["SMAW_HEDP", 100];
_this addMagazineCargo ["Stinger", 100];

// Items
_this addWeaponCargo ["Binocular", 100];
_this addWeaponCargo ["NVGoggles", 100];
_this addWeaponCargo ["ItemGPS", 100];
_this addWeaponCargo ["LaserDesignator", 100];
_this addMagazineCargo ["LaserBatteries", 100];

// Grenades & Satchels
_this addMagazineCargo ["HandGrenade_West", 100];
_this addMagazineCargo ["SmokeShell", 100];
_this addMagazineCargo ["SmokeShellGreen", 100];
_this addMagazineCargo ["SmokeShellRed", 100];
_this addMagazineCargo ["SmokeShellYellow", 100];
_this addMagazineCargo ["SmokeShellOrange", 100];
_this addMagazineCargo ["SmokeShellPurple", 100];
_this addMagazineCargo ["SmokeShellBlue", 100];
_this addMagazineCargo ["PipeBomb", 100];
_this addMagazineCargo ["Mine", 100];

// Restock time.  1800 = 30 minutes.
sleep 1800;
};

Share this post


Link to post
Share on other sites
To fill a ammo crate with custom weapons, you can use a script like this:

/////////////////////////////////////////////////////
//
// US Weapons Ammo Crate Fill Script.
//
// Called from an ammocrate's init field via:
//   nul = this execVM "ammo.sqf";
//
/////////////////////////////////////////////////////

while {alive _this} do
{

// Remove the stock items from the crate
clearMagazineCargo _this;
clearWeaponCargo _this;

/////////////////////////////////////////////////////
// WEAPONS
/////////////////////////////////////////////////////

// Main Battle Rifles (MBR)
_this addWeaponCargo ["G36a", 100];
_this addWeaponCargo ["G36C", 100];
_this addWeaponCargo ["G36_C_SD_eotech", 100];
_this addWeaponCargo ["G36K", 100];
_this addWeaponCargo ["M1014", 100];  // Combat shotgun
_this addWeaponCargo ["M16A2", 100];
_this addWeaponCargo ["M16A2GL", 100];
_this addWeaponCargo ["M16A4", 100];
_this addWeaponCargo ["M16A4_GL", 100];
_this addWeaponCargo ["M16A4_ACG_GL", 100];
_this addWeaponCargo ["M16A4_ACG", 100];
_this addWeaponCargo ["M4A1", 100];
_this addWeaponCargo ["M4A1_HWS_GL", 100];
_this addWeaponCargo ["M4A1_HWS_GL_camo", 100];
_this addWeaponCargo ["M4A1_HWS_GL_SD_Camo", 100];
_this addWeaponCargo ["M4A1_RCO_GL", 100];
_this addWeaponCargo ["M4A1_Aim", 100];
_this addWeaponCargo ["M4A1_Aim_camo", 100];
_this addWeaponCargo ["M4A1_AIM_SD_camo", 100];
_this addWeaponCargo ["M8_carbine", 100];
_this addWeaponCargo ["M8_carbineGL", 100];
_this addWeaponCargo ["M8_compact", 100];

// Submachineguns (SMG)
_this addWeaponCargo ["MP5A5", 100];
_this addWeaponCargo ["MP5SD", 100];

// Light Machineguns (LMG)
_this addWeaponCargo ["MG36", 100];
_this addWeaponCargo ["Mk_48", 100];
_this addWeaponCargo ["M240", 100];
_this addWeaponCargo ["M249", 100];
_this addWeaponCargo ["M8_SAW", 100];

// Sniper rifles
_this addWeaponCargo ["DMR", 100];
_this addWeaponCargo ["M4SPR", 100];
_this addWeaponCargo ["M8_sharpshooter", 100];
_this addWeaponCargo ["M107", 100];
_this addWeaponCargo ["M24", 100];
_this addWeaponCargo ["M40A3", 100];

// Pistols
_this addWeaponCargo ["Colt1911", 100];
_this addWeaponCargo ["M9", 100];
_this addWeaponCargo ["M9SD", 100];

// AT & AA
_this addWeaponCargo ["Javelin", 100];
_this addWeaponCargo ["M136", 100];
_this addWeaponCargo ["SMAW", 100];
_this addWeaponCargo ["Stinger", 100];

/////////////////////////////////////////////////////
// AMMO
/////////////////////////////////////////////////////

// LMG ammo
_this addMagazineCargo ["100Rnd_556x45_BetaCMag", 100];
_this addMagazineCargo ["100Rnd_762x51_M240", 100]; // also for Mk48
_this addMagazineCargo ["200Rnd_556x45_M249", 100];

// Sniper Rifle ammo
_this addMagazineCargo ["20Rnd_762x51_DMR", 100];
_this addMagazineCargo ["10Rnd_127x99_m107", 100];
_this addMagazineCargo ["5Rnd_762x51_M24", 100];

// MBR ammo
_this addMagazineCargo ["20Rnd_556x45_Stanag", 100];
_this addMagazineCargo ["30Rnd_556x45_G36", 100];
_this addMagazineCargo ["30Rnd_556x45_G36SD", 100];
_this addMagazineCargo ["30Rnd_556x45_Stanag", 100];
_this addMagazineCargo ["30Rnd_556x45_StanagSD", 100];
_this addMagazineCargo ["8Rnd_B_Beneli_74Slug", 100];  // Combat shotgun

// SMG ammo
_this addMagazineCargo ["30Rnd_9x19_MP5", 100];
_this addMagazineCargo ["30Rnd_9x19_MP5SD", 100];

// Pistol ammo
_this addMagazineCargo ["15Rnd_9x19_M9", 100];
_this addMagazineCargo ["15Rnd_9x19_M9SD", 100];
_this addMagazineCargo ["7Rnd_45ACP_1911", 100];

// M203 ammo
_this addMagazineCargo ["1Rnd_HE_M203", 100];
_this addMagazineCargo ["1Rnd_Smoke_M203", 100];
_this addMagazineCargo ["1Rnd_SmokeGreen_M203", 100];
_this addMagazineCargo ["1Rnd_SmokeRed_M203", 100];
_this addMagazineCargo ["1Rnd_SmokeYellow_M203", 100];
_this addMagazineCargo ["FlareGreen_M203", 100];
_this addMagazineCargo ["FlareRed_M203", 100];
_this addMagazineCargo ["FlareWhite_M203", 100];
_this addMagazineCargo ["FlareYellow_M203", 100];

// AT & AA ammo
_this addMagazineCargo ["Javelin", 100];
_this addMagazineCargo ["M136", 100];
_this addMagazineCargo ["SMAW_HEAA", 100];
_this addMagazineCargo ["SMAW_HEDP", 100];
_this addMagazineCargo ["Stinger", 100];

// Items
_this addWeaponCargo ["Binocular", 100];
_this addWeaponCargo ["NVGoggles", 100];
_this addWeaponCargo ["ItemGPS", 100];
_this addWeaponCargo ["LaserDesignator", 100];
_this addMagazineCargo ["LaserBatteries", 100];

// Grenades & Satchels
_this addMagazineCargo ["HandGrenade_West", 100];
_this addMagazineCargo ["SmokeShell", 100];
_this addMagazineCargo ["SmokeShellGreen", 100];
_this addMagazineCargo ["SmokeShellRed", 100];
_this addMagazineCargo ["SmokeShellYellow", 100];
_this addMagazineCargo ["SmokeShellOrange", 100];
_this addMagazineCargo ["SmokeShellPurple", 100];
_this addMagazineCargo ["SmokeShellBlue", 100];
_this addMagazineCargo ["PipeBomb", 100];
_this addMagazineCargo ["Mine", 100];

// Restock time.  1800 = 30 minutes.
sleep 1800;
};

hey, when i put this into a .sqf file and did the nul = this execVM ammo.sqf; command, it wouldnt let me open the crate, and when i shot it it would dissapear? help?

Share this post


Link to post
Share on other sites

not sure if it will be any help for you but you can use this exec "ammo.sqs" and it will work fine instead of this execVM "ammo.sqf"

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×