{"name":"actionKeysNamesArray","title":"actionKeysNamesArray","type":"command","url":"https://community.bistudio.com/wiki/actionKeysNamesArray","revid":376357,"updated":"2025-10-07T21:38:14Z","groups":["Interaction"],"status":"ok","games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","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","params":[{"name":"userAction","type":"String","description":"name of the action","type_expr":"String"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"userAction"}},{"syntax":"actionKeysNamesArray [userAction, maxKeys, inputDevicePriority]","params":[{"name":"userAction","type":"String","description":"name of the action","type_expr":"String"},{"name":"maxKeys","type":"Number","description":"maximum number of keys to return","type_expr":"Number"},{"name":"inputDevicePriority","type":"String","optional":true,"description":"result sorted by `inputDevicePriority` with values:\n\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)\n\nOther values are considered as:\n\n- `\"Unsorted\"`","type_expr":"String","since":"arma3 1.36","text":"inputDevicePriority: String - (Optional) result sorted by `inputDevicePriority` with values:\n\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)\n\nOther values are considered as:\n\n- `\"Unsorted\"`"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"[userAction, maxKeys, inputDevicePriority]"}}],"examples":[{"code":["_actionList = actionKeysNamesArray \"ReloadMagazine\";"]},{"code":["_actionList = actionKeysNamesArray [\"ReloadMagazine\", 1];"]}],"see_also":["actionKeys","actionKeysImages","actionKeysNames","actionName","inputAction"]}