ACE3/addons/respawn/functions/fnc_removeBody.sqf

28 lines
613 B
Plaintext
Raw Normal View History

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
*/
#include "script_component.hpp"
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
[{
// 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);