Im working on something that uses cba progressBar that is executed by an ACE interaction on an object.
The code (steps to reproduce), as is, crashes the game with Exception code: C0000005 ACCESS_VIOLATION at 00000000.
Im working on something that uses cba progressBar that is executed by an ACE interaction on an object.
The code (steps to reproduce), as is, crashes the game with Exception code: C0000005 ACCESS_VIOLATION at 00000000.
Mods:
CBA + ACE
veteran29 — heute um 14:00 Uhr
Delay it a frame
starting the progress bar from ACE Interaction crashes the game.
sqf _cvo_fullAceHeal = [ "CVO_FullHeal", "Get Full Health Check", "", { [ "Get Treated...", 30, {true}, { [player] call ace_medical_treatment_fnc_fullHealLocal; hint "testheal done"; } ] call CBA_fnc_progressBar; }, {true} ] call ace_interact_menu_fnc_createAction; [ "UK3CB_KDF_O_Gaz66_Med", // class the action should be assigned to 0, // Type of action, 0 for action, 1 for self-actionIDs ["ACE_MainActions"], // Parent path of the new action <Array> _cvo_fullAceHeal ] call ace_interact_menu_fnc_addActionToClass;
The following workaround fixed the issue:
[{ [ "Get Treated...", 30, {true}, { [ACE_player] call ace_medical_treatment_fnc_fullHealLocal; hint "testheal done"; } ] call CBA_fnc_progressBar; }] call CBA_fnc_execNextFrame;