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:
[VB]AWOL
2014-01-29 14:00:02 -06:00
parent df005abfbf
commit bf189761ad

View File

@@ -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;
};
};