Skip to content

Commit b86a260

Browse files
committed
remove ehs for task rush
1 parent 33326b4 commit b86a260

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

addons/wp/functions/fnc_taskRush.sqf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,16 @@ waitUntil {
149149

150150
};
151151

152+
if !(local leader _group) exitWith {
153+
{
154+
private _unit = _x;
155+
{
156+
_unit removeEventHandler [_x select 0, _x select 1];
157+
} forEach (_unit getVariable [QGVAR(eventhandlers), [["Fired", -1], ["Suppressed", -1]]]);
158+
_unit setVariable [QGVAR(eventhandlers), nil];
159+
} forEach (units _group);
160+
false
161+
};
162+
152163
// end
153-
local leader _group
164+
true

0 commit comments

Comments
 (0)