mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-15 15:13:22 +03:00
Localize sell and buy only messages
PrimaryWeapon always returns "", never nil unless the player object isNull (in which case this script would not be running). Fixed cases where a nil variable would throw an error when checking the next condition.
This commit is contained in:
@@ -12,7 +12,7 @@ if (_selection == 2) then { //gear
|
||||
_allowedMags = 12 - _actualMags;
|
||||
|
||||
_p = primaryWeapon player;
|
||||
_allowedPrimary = if (!isNil "_p" && _p != "") then {0} else {1};
|
||||
_allowedPrimary = if (_p != "") then {0} else {1};
|
||||
if (DZE_TwoPrimaries == 2 && dayz_onBack == "") then { _allowedPrimary = _allowedPrimary + 1; };
|
||||
|
||||
_allowedSidearm = 1;
|
||||
|
||||
Reference in New Issue
Block a user