Files
DayZ-Epoch/SQF/dayz_code/actions/hide_body.sqf
2020-02-16 01:38:39 +01:00

21 lines
494 B
Plaintext

if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
dayz_actionInProgress = true;
private "_body";
player removeAction s_player_hide_body;
s_player_hide_body = -1;
closeDialog 0;
_body = _this select 3;
if (isNull _body) exitWith { dayz_actionInProgress = false;};
player action ["hideBody", _body];
dayz_actionInProgress = false;
if (_body isKindOf "zZombie_base" || {_body isKindOf "Animal"}) then {
uisleep 5;
deleteVehicle _body;
};