Arma 3 Scripting

Command in Interaction

actionKeysNames

Also available as Markdown and JSON, or read the 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 { /* ... */ };