actionKeysNamesArray
- Arma 3 v0.50
- First in Arma 2: Operation Arrowhead v1.50
Command · Markdown · JSON · original wiki page
Description
Returns a list of button names assigned to the given user action. You can find the action names in config class ControllerSchemes or user action names.
Syntax
Syntax 1
actionKeysNamesArray userAction
Parameters:
userAction: String - name of the action
Syntax 2
actionKeysNamesArray [userAction, maxKeys, inputDevicePriority]
Parameters:
-
userAction: String - name of the action -
maxKeys: Number - maximum number of keys to return -
inputDevicePriority: String - (Optional) result sorted byinputDevicePrioritywith values:"Mouse""Keyboard""Stick""Gamepad""Tracker""Combo"(mouse and keyboard combinations)"Controler"[sic] (any controller other than mouse or keyboard)
Other values are considered as:
"Unsorted"(since arma3 1.36)
Examples
Example 1
_actionList = actionKeysNamesArray "ReloadMagazine";
Example 2
_actionList = actionKeysNamesArray ["ReloadMagazine", 1];
See also
actionKeys · actionKeysImages · actionKeysNames · actionName · inputAction