mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 23:50:48 +03:00
Prevent MeleeMagazines being counted by BIS_fnc_inv
This commit is contained in:
@@ -26,6 +26,8 @@ _weapon = _this select 1;
|
||||
_newWeapon = _this select 2;
|
||||
|
||||
//check that player has enough room in inventory
|
||||
//Remove melee magazines (BIS_fnc_invAdd and BIS_fnc_invSlotsEmpty fix)
|
||||
{player removeMagazines _x} count MeleeMagazines;
|
||||
if ((([player] call BIS_fnc_invSlotsEmpty) select 4) < 1) exitWith
|
||||
{
|
||||
closeDialog 0;
|
||||
|
||||
Reference in New Issue
Block a user