diff --git a/addons/cookoff/XEH_postInit.sqf b/addons/cookoff/XEH_postInit.sqf index 750fb87c14..b9c8101595 100644 --- a/addons/cookoff/XEH_postInit.sqf +++ b/addons/cookoff/XEH_postInit.sqf @@ -20,7 +20,7 @@ private _deletedEH = _vehicle addEventHandler ["Deleted", { params ["_vehicle"]; - [QGVAR(cleanupEffects), [_vehicle]] call CBA_fnc_globalEvent; + [QGVAR(cleanupEffects), [_vehicle]] call CBA_fnc_localEvent; }]; _vehicle setVariable [QGVAR(deletedEH), _deletedEH]; diff --git a/addons/cookoff/functions/fnc_cookOff.sqf b/addons/cookoff/functions/fnc_cookOff.sqf index 8176b8d085..5b57b872ad 100644 --- a/addons/cookoff/functions/fnc_cookOff.sqf +++ b/addons/cookoff/functions/fnc_cookOff.sqf @@ -30,7 +30,7 @@ TRACE_9("cooking off",_vehicle,_intensity,_instigator,_smokeDelayEnabled,_ammoDe if (_vehicle getVariable [QGVAR(isCookingOff), false]) exitWith {}; _vehicle setVariable [QGVAR(isCookingOff), true, true]; -[QGVAR(addCleanupHandlers), [_vehicle]] call CBA_fnc_serverEvent; +[QGVAR(addCleanupHandlers), [_vehicle]] call CBA_fnc_globalEvent; // limit maximum value of intensity to prevent very long cook-off times _intensity = _intensity min _maxIntensity;