2015-01-12 09:07:03 +00:00
|
|
|
/*
|
2015-09-26 14:26:41 +00:00
|
|
|
* Author: bux578, commy2
|
|
|
|
* Removes a given body.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Body <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [corpse] call ace_respawn_fnc_removeBody
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-12 10:24:58 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-10 11:21:52 +00:00
|
|
|
|
2015-09-26 14:26:41 +00:00
|
|
|
params ["_body", "_forceRemove"];
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-09-26 14:26:41 +00:00
|
|
|
private "_bodyRemoveTimer";
|
|
|
|
_bodyRemoveTimer = [GVAR(BodyRemoveTimer) max 0, 2] select _forceRemove; // could be used for SpecOps missions.
|
2015-01-12 09:07:03 +00:00
|
|
|
|
2015-04-11 17:36:38 +00:00
|
|
|
[{
|
2015-04-10 13:23:27 +00:00
|
|
|
// hideBody takes ~20s till body is fully underground
|
|
|
|
// a better hideBody would make this more aesthetic
|
|
|
|
deleteVehicle _this;
|
2015-09-26 14:26:41 +00:00
|
|
|
}, _body, _bodyRemoveTimer] call EFUNC(common,waitAndExecute);
|