Jump to content
Sign in to follow this  
TheKobr4

Create a weaponholder for every Buildingpos

Recommended Posts

Hi!

as the tilte says, im looking for a script which spawns a WeaponHolder on every Buildingpos.

this is what ive got, for one position:

_houseList = getPos _trig nearObjects ["House",200];
{
 _c = 0;
 while { format ["%1", _x buildingPos _c] != "[0,0,0]" } do {_c = _c + 1};
 if (_c > 0) then
    {
       _ranNum = floor(random _c);
       _crate = "USBasicAmmunitionBox" createVehicle [0,0,0];
       _crate setPos (_x buildingPos _ranNum);
    };
 sleep 0.123;
} forEach _houseList;

thanks for any help!

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  

×