From 38b4de938288abc306bda3fa19a2c15080b7bdcf Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 13 May 2022 19:54:09 -0500 Subject: [PATCH] Cookoff - fix locality of `fire_removeFireSource` event (#8907) --- addons/cookoff/functions/fnc_cookOffEffect.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/cookoff/functions/fnc_cookOffEffect.sqf b/addons/cookoff/functions/fnc_cookOffEffect.sqf index f7c8a02da9..8a6ea37d99 100644 --- a/addons/cookoff/functions/fnc_cookOffEffect.sqf +++ b/addons/cookoff/functions/fnc_cookOffEffect.sqf @@ -48,7 +48,9 @@ if (isServer) then { if (_elapsedTime >= _time) exitWith { deleteVehicle _light; deleteVehicle _sound; - [QEGVAR(fire,removeFireSource), [_obj]] call CBA_fnc_globalEvent; + if (isServer) then { + [QEGVAR(fire,removeFireSource), [_obj]] call CBA_fnc_localEvent; + }; [_pfh] call CBA_fnc_removePerFrameHandler; }; private _factor = (1 + (_elapsedTime / 2) min 2);