Jump to content

neonghillie

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Posts posted by neonghillie


  1. Thanks guys. I fixed the problems but the crate still appears to be empty. Any ideas?

    /

    _rdm = round ((random 1)5);

    _box =_this select 0;

    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_mag_Tracer ",1];

    };

    \[code]


  2. Still doesn't seem to be working. Do you think it may be a syntax error?

    Thanks for your input!

    /

    _rdm = round ((random 1)5);

    _box =_this select 0;

    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]

    };


  3. 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];
    }
    };
    

×