Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "weapon": {
- _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
- _item addWeaponCargoGlobal [_iItem,1];
- _mags = [] + getArray (configFile >> "cfgWeapons" >> _iItem >> "magazines");
- if (_iItem == 'BAF_AS50_scoped_Large') then
- {
- _item addMagazineCargoGlobal ['10Rnd_127x99_m107', (round(random 2) + 1)];
- }
- else
- {
- if ((count _mags) > 0) then
- {
- if (!(_iItem in MeleeWeapons)) then
- {
- _item addMagazineCargoGlobal [(_mags select 0), (round(random 2) + 1)];
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement