LSValmont 789 Posted May 2, 2020 I my quest to find a way to remove Arma 3's default "Heal Self" action that pops up when you are wounded (I want it removed since I have my own healing script UI) and I need a way to do it without mods... Can inGameUISetEventHandler be used for that same effect and can it remove more than one default Action? https://community.bistudio.com/wiki/inGameUISetEventHandler Share this post Link to post Share on other sites
Dedmen 2714 Posted May 7, 2020 A eventhandler handles events, it doesn't remove actions. But you can block the execution of these actions with it by returning true. 2 Share this post Link to post Share on other sites
LSValmont 789 Posted May 7, 2020 5 hours ago, Dedmen said: A eventhandler handles events, it doesn't remove actions. But you can block the execution of these actions with it by returning true. Thank you @Dedmen! Could you help me a little bit more on how to achieve that? 1 Share this post Link to post Share on other sites
Dedmen 2714 Posted May 8, 2020 14 hours ago, LSValmont said: Could you help me a little bit more on how to achieve that? https://community.bistudio.com/wiki/inGameUISetEventHandler Example 3 2 Share this post Link to post Share on other sites
LSValmont 789 Posted May 8, 2020 4 hours ago, Dedmen said: https://community.bistudio.com/wiki/inGameUISetEventHandler Example 3 Yeah but how do I find out the name of the default actions? Also I believe this won't hide the actions just hint that you cannot use them? Or is it possible to hide them? And can it be stacked? Like: inGameUISetEventHandler ["Action", " if (_this select 3 == 'DisAssemble') then { hint 'You are not allowed to do this'; true } "]; inGameUISetEventHandler ["Action", " if (_this select 3 == 'HealSelf') then { hint 'You are not allowed to do this'; true } "]; inGameUISetEventHandler ["Action", " if (_this select 3 == 'HealOthers') then { hint 'You are not allowed to do this'; true } "]; Share this post Link to post Share on other sites
Dedmen 2714 Posted May 8, 2020 3 minutes ago, LSValmont said: Also I believe this won't hide the actions just hint that you cannot use them? No hint, but the action won't fire. 3 minutes ago, LSValmont said: Or is it possible to hide them? Don't know of a way, besides config editing. 3 minutes ago, LSValmont said: And can it be stacked? Why do I need to link the same wiki page multiple times? https://community.bistudio.com/wiki/inGameUISetEventHandler Quote This is "set" type EH, which means it will replace previously set EH of the same type. So to remove EH, set another one with empty string "" for the function. 1 Share this post Link to post Share on other sites
LSValmont 789 Posted May 8, 2020 18 minutes ago, Dedmen said: Don't know of a way, besides config editing. That is too bad, I am doing a super script suit that will replace many mods and the idea is to foment more modless missions since many mods break with updates and are often left "outdated" and that is one of the reason I am doing this scripts package. One of the features of this package is called vMenu and is basically a modless alternative to ACE's menu. It has options to bandage, inject morphine and transfuse blood but A3's default actions need to be hidden for it to work as intended. I guess I've run out of options... but Thank you for clearing this up! Share this post Link to post Share on other sites
gc8 977 Posted May 8, 2020 15 minutes ago, LSValmont said: A3's default actions need to be hidden for it to work as intended. If they are created in ACE with addAction you should be able to delete them with removeAction everything returned by actionIDs should be able to delete Share this post Link to post Share on other sites
LSValmont 789 Posted May 8, 2020 30 minutes ago, gc8 said: If they are created in ACE with addAction you should be able to delete them with removeAction everything returned by actionIDs should be able to delete They are not created in ACE, in fact they are a scripted alternative to ACE. The whole idea is to have similar functionality without installing any mods whatsoever (except for CBA that is) . Share this post Link to post Share on other sites