mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Push #941 - HideBody
This commit is contained in:
@@ -7,8 +7,9 @@ if (local _zombiebody) then {
|
||||
|
||||
[time, _zombiebody] spawn {
|
||||
private ["_timer", "_body"];
|
||||
_timer = _this select 0;
|
||||
_body = _this select 1;
|
||||
_timer = _this select 0;
|
||||
_body = _this select 1;
|
||||
_pos = getPosATL _body;
|
||||
while {(count magazines _body >0) and (time - _timer < 300) } do {
|
||||
sleep 5;
|
||||
};
|
||||
@@ -16,6 +17,15 @@ if (local _zombiebody) then {
|
||||
PVDZE_plr_HideBody = _body;
|
||||
hideBody _body; // local player
|
||||
publicVariable "PVDZE_plr_HideBody"; // remote player
|
||||
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
_inRange = _pos nearEntities ["CAManBase",100];
|
||||
{
|
||||
PVDZE_send = [_x,"HideBody",[_body]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
} forEach _inRange;
|
||||
*/
|
||||
|
||||
sleep 5;
|
||||
deleteVehicle _body;
|
||||
true;
|
||||
|
||||
Reference in New Issue
Block a user