{"name":"actionKeysNamesArray","operator":null,"title":"actionKeysNamesArray","type":"command","url":"https://community.bistudio.com/wiki/actionKeysNamesArray","revid":376357,"updated":"2025-10-07T21:38:14Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"actionKeysNamesArray userAction","since":null,"effect":null,"exec":null,"params":[{"name":"userAction","type":"String","optional":false,"default":null,"description":"name of the action","types":["String"],"since":null,"text":"userAction: String - name of the action"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":null,"text":"Array of Strings"},"form":"unary","operator":null,"left":null,"right":{"text":"userAction","types":["String"]}},{"syntax":"actionKeysNamesArray [userAction, maxKeys, inputDevicePriority]","since":null,"effect":null,"exec":null,"params":[{"name":"userAction","type":"String","optional":false,"default":null,"description":"name of the action","types":["String"],"since":null,"text":"userAction: String - name of the action"},{"name":"maxKeys","type":"Number","optional":false,"default":null,"description":"maximum number of keys to return","types":["Number"],"since":null,"text":"maxKeys: Number - maximum number of keys to return"},{"name":"inputDevicePriority","type":"String","optional":true,"default":null,"description":"result sorted by `inputDevicePriority` with values:\n- `\"Mouse\"`\n- `\"Keyboard\"`\n- `\"Stick\"`\n- `\"Gamepad\"`\n- `\"Tracker\"`\n- `\"Combo\"` (mouse and keyboard combinations)\n- `\"Controler\"` [sic] (any controller other than mouse or keyboard)\nOther values are considered as:\n- `\"Unsorted\"`","types":["String"],"since":"arma3 1.36","text":"inputDevicePriority: String - (Optional) result sorted by `inputDevicePriority` with values:\n- `\"Mouse\"`\n- `\"Keyboard\"`\n- `\"Stick\"`\n- `\"Gamepad\"`\n- `\"Tracker\"`\n- `\"Combo\"` (mouse and keyboard combinations)\n- `\"Controler\"` [sic] (any controller other than mouse or keyboard)\nOther values are considered as:\n- `\"Unsorted\"`"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":null,"text":"Array of Strings"},"form":"unary","operator":null,"left":null,"right":{"text":"[userAction, maxKeys, inputDevicePriority]","types":["Array"]}}],"examples":[{"text":"```sqf\n_actionList = actionKeysNamesArray \"ReloadMagazine\";\n```","code":["_actionList = actionKeysNamesArray \"ReloadMagazine\";"]},{"text":"```sqf\n_actionList = actionKeysNamesArray [\"ReloadMagazine\", 1];\n```","code":["_actionList = actionKeysNamesArray [\"ReloadMagazine\", 1];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["actionKeys","actionKeysImages","actionKeysNames","actionName","inputAction"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 2: Operation Arrowhead version 1.50","Scripting Commands","Take On Helicopters: Scripting Commands"]}