2015-01-12 09:07:03 +00:00
|
|
|
/*
|
|
|
|
* Author: bux578
|
|
|
|
*
|
|
|
|
* removes the body
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* The body
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*/
|
|
|
|
|
|
|
|
private ["_body", "_forceRemove", "_bodyRemoveTimer"];
|
|
|
|
|
|
|
|
_body = _this select 0;
|
|
|
|
_forceRemove = _this select 1;
|
|
|
|
|
2015-01-12 09:49:21 +00:00
|
|
|
_bodyRemoveTimer = GVAR(BodyRemoveTimer) max 0;
|
2015-01-12 09:07:03 +00:00
|
|
|
|
|
|
|
// could be used for SpecOps missions.
|
|
|
|
if (_forceRemove) then {
|
|
|
|
_bodyRemoveTimer = 2;
|
|
|
|
};
|
|
|
|
|
|
|
|
[_body, _bodyRemoveTimer] spawn {
|
|
|
|
sleep (_this select 1);
|
|
|
|
// hideBody takes ~20s till body is fully underground
|
|
|
|
// a better hideBody would make this more aesthetic
|
|
|
|
deleteVehicle (_this select 0);
|
|
|
|
};
|