15 lines
437 B
Plaintext
15 lines
437 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["ace_explosives_defuse", {
|
|
private _taskID = "";
|
|
{
|
|
if (_x isEqualType objNull && { !isNull _x }) then {
|
|
_taskID = _x getVariable ["assignedTask", ""];
|
|
if (_taskID isNotEqualTo "") exitWith {};
|
|
};
|
|
} forEach _this;
|
|
|
|
if (_taskID isEqualTo "") exitWith {};
|
|
GVAR(TaskStore) call ["incrementDefuseCount", [_taskID]];
|
|
}] call CFUNC(addEventHandler);
|