From 75547cef0614913027d748fb52a5e9ef85572813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brostr=C3=B6m=2EA=20=7C=20Evul?= Date: Tue, 13 Aug 2024 13:31:54 +0200 Subject: [PATCH] Possible fix for function call --- cScripts/functions/modules/fn_zenModule_callEndex.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cScripts/functions/modules/fn_zenModule_callEndex.sqf b/cScripts/functions/modules/fn_zenModule_callEndex.sqf index 5834d151b..6911c8496 100644 --- a/cScripts/functions/modules/fn_zenModule_callEndex.sqf +++ b/cScripts/functions/modules/fn_zenModule_callEndex.sqf @@ -113,9 +113,9 @@ params ["_modulePos", "_objectPos"]; }; }; if (!isNil{GETVAR(_unit,EGVAR(Endex,EventsAdded),nil)}) then { - [player, "fired", {_this call _fn_handleDischarge}] call CBA_fnc_addBISEventHandler; - ["ace_firedPlayer", {_this call _fn_handleDischarge}] call CBA_fnc_addEventHandler; - ["ace_firedPlayerVehicle", {_this call _fn_handleDischarge}] call CBA_fnc_addEventHandler; + [player, "fired", {_this call _thisArgs#0}, [_fn_handleDischarge]] call CBA_fnc_addBISEventHandler; + ["ace_firedPlayer", {_this call _thisArgs#0}] call CBA_fnc_addEventHandler; + ["ace_firedPlayerVehicle", {_this call _thisArgs#0}] call CBA_fnc_addEventHandler; SETVAR(_unit,EGVAR(Endex,EventsAdded),true); }; } remoteExecCall ["bis_fnc_call", 0];