2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-01-12 09:48:26 +00:00
|
|
|
Name: ACE_Explosives_fnc_startTimer
|
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Author(s):
|
|
|
|
Garth de Wet (LH)
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Description:
|
|
|
|
Starts a timer for an explosive.
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Parameters:
|
|
|
|
0: OBJECT - Explosive
|
|
|
|
1: NUMBER - time till detonation
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Returns:
|
|
|
|
Nothing
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Example:
|
2015-01-12 09:48:26 +00:00
|
|
|
[_explosive, 10] call ACE_Explosives_fnc_startTimer;
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-12 17:11:43 +00:00
|
|
|
#include "\z\ace\explosives\script_component.hpp"
|
2015-01-13 10:13:43 +00:00
|
|
|
[{
|
|
|
|
private ["_explosive"];
|
2015-01-11 16:42:31 +00:00
|
|
|
_explosive = _this select 0;
|
|
|
|
if (!isNull _explosive) then {
|
2015-01-12 09:48:26 +00:00
|
|
|
[_explosive, -1, [_explosive, 0], true] call FUNC(detonateExplosive);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
2015-01-13 10:13:43 +00:00
|
|
|
},_this select 1, _this] call CALLSTACK(CBA_fnc_addPerFrameHandler);
|