Hello all!
I'm new to Arma scripting and was wondering if anyone could fix this mess for me. Its supposed to spawn a random amount of random items in a supply crate. Sorry for my noobyness and thanks in advance!
_rdmc = round ((random 1) 4);
_rdm = round ((random 1)5);
_box =_this select 0;
for [rdmC] do
{
if (_rdm = 1) then
{
_box additemcargo ["itemMap",1];
};
if(_rdm = 2) then
{
_box additemcargo ["Binocular",1];
};
if(_rdm = 3) then
{
_box additemcargo ["itemGPS",1];
};
if(_rdm = 4) then
{
_box additemcargo ["itemFirstAidKit",1];
};
if (rdm = 5) then
{
_box addweaponcargo ["arifle_MXM_Base_F",1];
_box addmagazineCargo ["30Rnd_65x39_caseless_green_mag_Tracer ",1];
}
};