hide body locally and only send to other players

This commit is contained in:
[VB]AWOL
2014-01-29 14:06:41 -06:00
parent bf189761ad
commit 589b366ce3
2 changed files with 13 additions and 4 deletions

View File

@@ -18,11 +18,16 @@ if (local _animalbody) then {
sleep 5;
};
hideBody _body;
/* PVS/PVC - Skaronator */
_inRange = _pos nearEntities ["CAManBase",100];
{
// only send to other players
if(isPlayer _x and _x != player) then {
PVDZE_send = [_x,"HideBody",[_body]];
publicVariableServer "PVDZE_send";
};
} forEach _inRange;
sleep 5;

View File

@@ -14,11 +14,15 @@ if (local _zombiebody) then {
sleep 5;
};
hideBody _body;
/* PVS/PVC - Skaronator */
_inRange = _pos nearEntities ["CAManBase",100];
{
if(isPlayer _x and _x != player) then {
PVDZE_send = [_x,"HideBody",[_body]];
publicVariableServer "PVDZE_send";
};
} forEach _inRange;
sleep 5;