Files
DayZ-Epoch/SQF/dayz_code/compile/local_gutObjectZ.sqf
2013-10-07 10:56:47 +11:00

24 lines
601 B
Plaintext

private ["_zombiebody","_ehLoc"];
_zombiebody = _this select 0;
// _qty = _this select 1;
if (local _zombiebody) then {
_zombiebody addMagazine "ItemZombieParts";
[time, _zombiebody] spawn {
private ["_timer", "_body"];
_timer = _this select 0;
_body = _this select 1;
while {(count magazines _body >0) and (time - _timer < 300) } do {
sleep 5;
};
//["PVDZE_plr_HideBody",_body] call broadcastRpcCallAll;
PVDZE_plr_HideBody = _body;
hideBody _body; // local player
publicVariable "PVDZE_plr_HideBody"; // remote player
sleep 5;
deleteVehicle _body;
true;
};
};