Arma 3 Scripting

actionKeysEx

  • Arma 3 v2.10

Command · Markdown · JSON · original wiki page

Description

Gives a broken down version of actionKeys return. Returns an Array containing the breakdowns of the dikCodes of keys, buttons and combos assigned to the given user action.
Action names can be found in config class ControllerSchemes or user action names or user profile (see Example 1).
In addition, some of the actions are also listed here: inputAction/actions

The Key Device can be one of several types:

Syntax

actionKeysEx userAction

Parameters:

Returns: Array of Arrays in format [mainKeyArray, comboKeyArray, isDoubleTap]:

Examples

Example 1

To retrieve the following key's data, use the property name without 'key':

keyWatch[] = { 24 };
actionKeysEx "Watch"; // [[[24, "KEYBOARD"], [], false]]

Example 2

private _result = actionKeysEx "OpticsMode"; // [[[129,"MOUSE_BUTTON"],[29,"KEYBOARD"],false],[[181,"KEYBOARD"],[],false]]

See also

actionKeys · actionKeysNames · actionKeysNamesArray