Jump to content
Mr H.

Remove an ace 3 action by script.

Recommended Posts

Hi, I know how to add a custom ace 3 interaction by script, but is it possible to remove this action after use? And  how?

Share this post


Link to post
Share on other sites

found the solution on my own, post it here for anyone who is interested:

[OBJECT,0,["ACE_MainActions","ACTION"]] call ace_interact_menu_fnc_removeActionFromObject;

 

  • Like 4
  • Thanks 3

Share this post


Link to post
Share on other sites

Hey man, thanks for posting this. I have a similar concept that I need help with and I was wondering if you could steer me in the right direction.

I'm trying to remove the "release" action after you pick up a casualty. Basically, I have a trigger attached to a chopper, and I want the player to just drop the casualty in the chopper with an animation quickly. Everything works perfectly, the casualty detaches and goes into animation. The problem is the player goes back to standing there with the release action, and if you press it the casualty detaches from the helicopter and falls from the sky lol. 

Do you know if theres a path to remove/ cancel this action?  Or how to find it?

Share this post


Link to post
Share on other sites

It's a base ace3 action right? I suggest you browse their github to find the correct action name however I don't know if that's possible. Maybe use this? :
 

https://github.com/acemod/ACE3/blob/master/addons/dragging/functions/fnc_dropObject.sqf

Share this post


Link to post
Share on other sites

 

On 10/20/2017 at 11:17 AM, Mr H. said:

found the solution on my own, post it here for anyone who is interested:


[OBJECT,0,["ACE_MainActions","ACTION"]] call ace_interact_menu_fnc_removeActionFromObject;

 

It's funny how this isn't documented on the ACE website.
Thanks, this helped alot

Share this post


Link to post
Share on other sites
35 minutes ago, TheLocalPub said:

 

It's funny how this isn't documented on the ACE website.
Thanks, this helped alot

 

The ACE Wiki isn't comprehensive. Bookmark the ACE GitHub for future browsing:  https://github.com/acemod/ACE3/tree/master/addons

  • Thanks 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×