FIx a script error that prevented units from having primary weapons.

This commit is contained in:
Chris Cardozo 2020-11-22 11:13:22 -05:00
parent e54cbdba04
commit 047bf429f4

View File

@ -73,7 +73,7 @@ _unit setunitpos "AUTO";
if !(_uniforms isEqualTo []) then {_unit forceAddUniform (selectRandom _uniforms)};
if !(_headGear isEqualTo []) then {_unit addHeadgear (selectRandom _headGear)};
if !(_vests isEqualTo []) then {_unit addVest (selectRandom _vests)};
if (_weaponList isEqualTo []) then {
if !(_weaponList isEqualTo []) then {
_weap = selectRandom _weaponList;
_unit addWeaponGlobal _weap;
_ammoChoices = getArray (configFile >> "CfgWeapons" >> _weap >> "magazines");