Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ace_interact_menu_fnc_addActionToClass issue #5005

Closed
rebelvg opened this issue Mar 19, 2017 · 4 comments
Closed

ace_interact_menu_fnc_addActionToClass issue #5005

rebelvg opened this issue Mar 19, 2017 · 4 comments
Assignees

Comments

@rebelvg
Copy link
Contributor

rebelvg commented Mar 19, 2017

Arma 3 Version: 1.68 (stable)
CBA Version: 3.2.1 (stable)
ACE3 Version: 3.9.1 (rc1)

Mods:

- CBA_A3
- ace

Description:

  • ace_interact_menu_fnc_addActionToClass fails to add action if you're trying to add action while waiting for respawn.

Steps to reproduce:
Repro mission. https://www.dropbox.com/s/ylld7107gto91wp/ace_addaction_repro.VR.zip?dl=0

  • Launch repro mission in multiplayer mode.
  • Press repsawn.
  • After respawn check self-interaction, only one action will be there.

Where did the issue occur?

  • Dedicated / Self-Hosted Multiplayer / Singleplayer / Editor (Singleplayer) / Editor (Multiplayer) / Virtual Arsenal

Placed Modules:

  • None.

RPT log file:

  • N/A.
@commy2
Copy link
Contributor

commy2 commented Mar 19, 2017

player is null?

@rebelvg
Copy link
Contributor Author

rebelvg commented Mar 19, 2017

Nope.

@PabstMirror
Copy link
Contributor

CBA bug, but a fix for now is to just do this:

addMissionEventHandler ["EntityKilled", {
    [] spawn {
        waitUntil {alive player};
        _action = ["custom_action_class", "ADD ACTION CLASS", "", {systemChat "custom_action_class";}, {true}, {}] call ace_interact_menu_fnc_createAction;
        ["CAManBase", 1, ["ACE_SelfActions"], _action, true] call ace_interact_menu_fnc_addActionToClass;
    };
}];

@commy2
Copy link
Contributor

commy2 commented Mar 20, 2017

Should be fixed next CBA version.

@commy2 commy2 closed this as completed Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants