More PVS/PVC Stuff

This commit is contained in:
Skaronator
2014-01-16 14:39:53 +01:00
parent a363400d64
commit 40e4239d42
12 changed files with 100 additions and 29 deletions

View File

@@ -6,8 +6,12 @@ if (!(isNull _backpack) and local _backpack) then {
_weaponscnt = count (_weapons select 0);
_magazinescnt = count (_magazines select 0);
if((_magazinescnt > 0) or (_weaponscnt > 0)) then {
// hide backpack from everyone else
PVDZE_obj_Hide = _backpack;
publicVariable "PVDZE_obj_Hide";
/* PVS/PVC - Skaronator */
_pos = getPosATL player;
_inRange = _pos nearEntities ["CAManBase",300];
{
PVDZE_send = [_x,"HideObj",[_backpack]];
publicVariableServer "PVDZE_send";
} forEach _inRange;
};
};