mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
should fix backpack issues
This makes sure we only run on players and not the player as this currently hides the backpack from the player that set it down and was running on everyone zombies included.
This commit is contained in:
@@ -10,8 +10,11 @@ if (!(isNull _backpack) and local _backpack) then {
|
||||
_pos = getPosATL player;
|
||||
_inRange = _pos nearEntities ["CAManBase",300];
|
||||
{
|
||||
PVDZE_send = [_x,"HideObj",[_backpack]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
// run only on other players
|
||||
if(isPlayer _x and _x != player) then {
|
||||
PVDZE_send = [_x,"HideObj",[_backpack]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
};
|
||||
} forEach _inRange;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user