Arma 3 Scripting

actionKeysNames

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Returns a list of button names assigned to the given user action. Action names can be found in config class ControllerSchemes or user action names.

Syntax

Syntax 1

actionKeysNames userAction

Parameters:

Returns: String

Syntax 2

actionKeysNames [userAction, maxKeys, inputDevicePriority]

Parameters:

Returns: String

Examples

Example 1

_list = actionKeysNames "ReloadMagazine"; // """R"" or ""XBox X"""

See also

actionKeys · actionKeysImages · actionKeysNamesArray · actionName · inputAction

Community notes

WGL.Q

The return type is a stacked string. A string inside a string. To compare use first single and inside double quotes:

if (actionKeysNames "User1" == '"W"') then { /* ... */ };