Ace3: open Dialog with SelfInteraction

Created on 2 May 2020  路  2Comments  路  Source: acemod/ACE3

Mods (complete and add to the following information):

  • Arma 3: 1.98 stable
  • CBA: 3.15.0
  • ACE3: 3.13.2

Description:
Try to open a BIS Dialog (Dynamic Group) with ace interaction.
On execution game crash without an .rpt error or any other message.
with addacion it work.

Steps to reproduce:
setup mission with Arma_3_Dynamic_Groups
Execute that in the Debug consol

_action = ["GroupMenu","Group Menu","",{([] call BIS_fnc_displayMission) createDisplay "RscDisplayDynamicGroups";},{true}] call ace_interact_menu_fnc_createAction;
[(typeOf player), 1, ["ACE_SelfActions"], _action] call ace_interact_menu_fnc_addActionToClass;

Expected behavior:
I expect that the Dynamic Group Menu pops up

Where did the issue occur?
Editor (Singleplayer) / Editor (Multiplayer)

Log Files:
None

Additional context:
Add any other context about the problem here.

Screenshots:
If applicable, add screenshots to help explain your problem.

kinquestion

Most helpful comment

Great Thanks. it worked
Didnt know that.

All 2 comments

Arma crashes when you create a display from inside another display unload event. Wrap your code in execNextFrame and it will work:

_action = ["GroupMenu","Group Menu","",{
    {
        ([] call BIS_fnc_displayMission) createDisplay "RscDisplayDynamicGroups";
    } call CBA_fnc_execNextFrame;
},{true}] call ace_interact_menu_fnc_createAction;
[typeOf player, 1, ["ACE_SelfActions"], _action] call ace_interact_menu_fnc_addActionToClass;

Great Thanks. it worked
Didnt know that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

armyinf0703 picture armyinf0703  路  3Comments

Harry666cz picture Harry666cz  路  3Comments

Snak3Doc picture Snak3Doc  路  4Comments

lividsubset3 picture lividsubset3  路  3Comments

JudahHarvey picture JudahHarvey  路  4Comments