Custom actions on the ACE Interaction Menu

Опубликовано: 30 Апрель 2026
на канале: Beetnick
2,010
25

This video will demonstrate the potential when adding custom actions to the ACE Interaction Menu.

My example:
(Tweaked from the frameworks page on their website https://ace3mod.com/wiki/framework/in...)

Creating the action (fnc_createAction)
Arguments used in my scenario-
0: Action name //string
1: Name of the action shown in the menu //string
2: Icon //string (not optional, use "" if no icon is used)
3: Statement //code
4: Condition //code

_var = ["_Action name", "_Name of action", "_Icon", {_code}, {_condition}] call ace_interact_menu_fnc_createAction;

Code used in the video-
_freeToGo = ["Free to go", "Free to go", "", {[_target, false] call ACE_captives_fnc_setSurrendered}, {true}] call ace_interact_menu_fnc_createAction;


Adding the action to class (fnc_addActionToClass)
Arguments used in my scenario-
0: TypeOf of the class //string
1: Type of action, 0 for actions, 1 for self-actions //number
2: Parent path of the new action //array (this is where the action will be housed ie. ACE_MainActions = Interactions, ACE_TapShoulderRight = Right shoulder etc.)
3: Action //array
4: Use Inheritance //bool (optional)

["typeOf", Type of action (0 = external or 1 = self), ["Parent path"], [action], Inheritance (True or False - optional)] call ace_interact_menu_fnc_addActionToClass;

Code used in the video-

Adding to external action (things you can interact with outside of yourself)
["Man", 0, ["ACE_MainActions"], _freeToGo, true] call ace_interact_menu_fnc_addActionToClass;

&

Adding to self actions
[(typeOf _unit), 1, ["ACE_SelfActions"], _SWATBackup, true] call ace_interact_menu_fnc_addActionToClass;

All together-
External Action:
_freeToGo = ["Free to go", "Free to go", "", {[_target, false] call ACE_captives_fnc_setSurrendered}, {true}] call ace_interact_menu_fnc_createAction;
["Man", 0, ["ACE_MainActions"], _freeToGo, true] call ace_interact_menu_fnc_addActionToClass;

Self Action:
_SWATBackup = ["Call for SWAT", "Call for SWAT", "", {execVM "SWATVehicleRequest.sqf"}, {true}] call ace_interact_menu_fnc_createAction;
[(typeOf _unit), 1, ["ACE_SelfActions"], _SWATBackup, true] call ace_interact_menu_fnc_addActionToClass;


None of this would have been possible if it wasn't for the ACE developers!
All credit goes to them and their team!
I'd like to personally thank them for creating this mod and supplying the documentation so that users, like me, can expand on what Arma 3 has to offer.