mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
452947148a
Defuse object doesn't get cleaned up on it's own. But if a player comes near it with interact menu on it will get cleaned up.
27 lines
542 B
Plaintext
27 lines
542 B
Plaintext
/*
|
|
* Author: Garth 'L-H' de Wet
|
|
* Starts a timer for an explosive.
|
|
*
|
|
* Arguments:
|
|
* 0: Explosive <OBJECT>
|
|
* 1: Time till detonate <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_explosive, 10] call ACE_Explosives_fnc_startTimer;
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
EXPLODE_2_PVT(_this,_explosive,_delay);
|
|
|
|
[{
|
|
_explosive = _this;
|
|
if (!isNull _explosive) then {
|
|
[_explosive, -1, [_explosive, 0]] call FUNC(detonateExplosive);
|
|
};
|
|
}, _explosive, _delay, 0] call EFUNC(common,waitAndExecute);
|