Ported AGM_Explosives to ace.

Marked locations where Scheduled Delay Execution will probably need to be used.
This commit is contained in:
Garth L-H de Wet
2015-01-12 11:48:26 +02:00
parent 877fef16be
commit 5e67de4d66
69 changed files with 1565 additions and 1609 deletions

View File

@ -0,0 +1,30 @@
/*
Name: ACE_Explosives_fnc_startTimer
Author(s):
Garth de Wet (LH)
Description:
Starts a timer for an explosive.
Parameters:
0: OBJECT - Explosive
1: NUMBER - time till detonation
Returns:
Nothing
Example:
[_explosive, 10] call ACE_Explosives_fnc_startTimer;
*/
#include "script_component.hpp"
_this spawn { // TODO: use scheduled delay execution
private ["_explosive", "_timer"];
_explosive = _this select 0;
_timer = _this select 1;
sleep _timer;
if (!isNull _explosive) then {
[_explosive, -1, [_explosive, 0], true] call FUNC(detonateExplosive);
};
};