Interact Menu Functions

ace_interact_menu_fnc_addActionToClass

Description

Inserts an ACE action to a class, under a certain path. Note: This function is NOT global.

Parameters

Index Description Datatype(s) Default Value
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  
3 Action ARRAY  
4 Use Inheritance BOOL false
5 Classes excluded from inheritance (children included) ARRAY []

Return Value

Description Datatype(s)
The entry full path, which can be used to remove the entry, or add children entries ARRAY

Example

[typeOf cursorTarget, 0, ["ACE_TapShoulderRight"], VulcanPinchAction] call ace_interact_menu_fnc_addActionToClass;

Authors

  • esteldunedain

ace_interact_menu_fnc_addActionToObject

Description

Insert an ACE action to an object, under a certain config path Note: This function is NOT global.

Parameters

Index Description Datatype(s) Default Value
0 Object the action should be assigned to OBJECT  
1 Type of action, 0 for actions, 1 for self-actions NUMBER  
2 Parent path of the new action ARRAY  
3 Action ARRAY  

Return Value

Description Datatype(s)
The entry full path, which can be used to remove the entry, or add children entries ARRAY

Example

[cursorTarget, 0, ["ACE_TapShoulderRight"],VulcanPinchAction] call ace_interact_menu_fnc_addActionToObject;

Authors

  • esteldunedain

ace_interact_menu_fnc_addActionToZeus

Description

Insert an ACE action to zeus. Note: This function is NOT global.

Parameters

Index Description Datatype(s) Default Value
0 Parent path of the new action (e.g. [“ACE_ZeusActions”]) ARRAY  
1 Action ARRAY  

Return Value

Description Datatype(s)
The entry full path, which can be used to add children entries ARRAY

Example

[["ACE_ZeusActions"], zeusAction] call ace_interact_menu_fnc_addActionToZeus;

Authors

  • PabstMirror

ace_interact_menu_fnc_createAction

Description

Creates an isolated ACE action Note: This function is NOT global.

Parameters

Index Description Datatype(s) Default Value
0 Action name STRING  
1 Name of the action shown in the menu STRING  
2 Icon file path or Array of icon file path and hex color (“” for default icon) STRING ARRAY
3 Statement CODE  
4 Condition CODE  
5 Insert children code CODE {}
6 Action parameters ANY []
7 Position (Position array, Position code or Selection Name) , or STRING {[0, 0, 0]}
8 Distance NUMBER 2
9 Other parameters [showDisabled,enableInside,canCollapse,runOnHover,doNotCheckLOS] ARRAY all false
10 Modifier function CODE {}

Return Value

Description Datatype(s)
Action ARRAY

Example

["VulcanPinch","Vulcan Pinch","",{_target setDamage 1;},{true},{},[parameters], [0,0,0], 100] call ace_interact_menu_fnc_createAction;

Authors

  • esteldunedain