#include "script_component.hpp" if (isServer) then { [] call FUNC(missionManager); }; ["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);