Add SecondaryWeapon to TraderArray (untested !!!)

This commit is contained in:
He-Man 2018-04-12 21:00:24 +02:00
parent 001c49f148
commit c5abeed9f7
2 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,9 @@ if (alive _target) then {
if (primaryWeapon player != "") then {
EPOCH_NpcTradePlayerItems pushback primaryWeapon player;
};
if (secondaryWeapon player != "") then {
EPOCH_NpcTradePlayerItems pushback secondaryWeapon player;
};
if (count backpackItems player == 0 && count backpackmagazines player == 0 && backpack player != "") then {
EPOCH_NpcTradePlayerItems pushback backpack player;
};

View File

@ -45,7 +45,7 @@ if (alive _this) then {
_added = true;
}
else {
if (_item == primaryweapon player) then {
if (_item in [primaryweapon player, secondaryweapon player]) then {
player removeweapon _item;
_arrayIn pushBack [_item,_rounds];
_added = true;