mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
23 lines
491 B
Plaintext
23 lines
491 B
Plaintext
private["_qty","_item","_meat"];
|
|
_item = _this select 0;
|
|
_qty = _this select 1;
|
|
_meat = 0;
|
|
_loop = true;
|
|
if (local _item) then {
|
|
for "_x" from 1 to _qty do {
|
|
_item addMagazine "FoodSteakRaw";
|
|
};
|
|
sleep 2;
|
|
_timer = time;
|
|
while {_loop} do {
|
|
_meat = count magazines _item;
|
|
if (_meat == 0) then {_loop = false};
|
|
if ((time - _timer) > 300) then {_loop = false};
|
|
sleep 1;
|
|
};
|
|
dayzHideBody = _item;
|
|
publicVariable "dayzHideBody";
|
|
hideBody _item;
|
|
sleep 10;
|
|
deleteVehicle _item;
|
|
}; |