mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Sync near player checks
Checking if the player is the closest is not always the best idea, this fixes a few dupes and syncs the distance for all player checks
This commit is contained in:
@@ -36,7 +36,7 @@ _claimedBy = _holder getVariable["claimed","0"];
|
||||
if (_claimedBy != _playerID) exitWith { format[localize "str_player_beinglooted",_text] call dayz_rollingMessages; };
|
||||
|
||||
if (_classname isKindOf "Bag_Base_EP1") exitWith {
|
||||
_PlayerNear = {isPlayer _x} count ((getPosATL _holder) nearEntities ["CAManBase", 10]) > 1;
|
||||
_PlayerNear = {isPlayer _x} count ((getPosATL _holder) nearEntities ["CAManBase", 12]) > 1;
|
||||
if (_PlayerNear) exitWith {localize "str_pickup_limit_4" call dayz_rollingMessages;};
|
||||
|
||||
_hasBag = unitBackpack player;
|
||||
|
||||
Reference in New Issue
Block a user