Arma 2 Editing & Scripting - Ammo crate script

Channel:
Subscribers:
3,290
Published on ● Video Link: https://www.youtube.com/watch?v=6su76i4enQ8



Game:
ARMA 2 (2009)
Duration: 8:19
11,209 views
65


Here's a video of me making scripts for clearing ammo crates and adding your own content, aswell as defining different boxes in the same script, that way you can avoid making lots of scripts for ammo crates.

The site where to find the ammo classnames
http://www.armaholic.com/forums.php?m=posts&q=6751

Different commands used in the script
http://www.arma2.com/comref/comref.html

_box = _this select 0; /// Ammo box
_role = _this select 1; //// Role select
ClearWeaponcargo _box;
ClearMagazineCargo _box;

///// M16A2
if (_role == 1) then {
_Box addweaponcargo ["M16A2",20];
_Box addMagazineCargo ["30Rnd_556x45_Stanag",100];
};







Tags:
Arma 2
Arma 2 operation arrowhead
military simulator
scripting
editing
ammobox
ammo cache
m16a2
editing & scripting
sqf



Other Statistics

ARMA 2 Statistics For OksmanTV

There are 516,464 views in 166 videos for ARMA 2. His channel published over 1 day worth of content for the game, or 30.63% of the total watchable video for ARMA 2 on OksmanTV's YouTube channel.