actionKeys: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
m (removed the notes since they were incorrect.) |
||
Line 39: | Line 39: | ||
|seealso= [[actionKeysNames]], [[actionKeysNamesArray]], [[actionKeysImages]], [[actionName]], [[inputAction]] | |seealso= [[actionKeysNames]], [[actionKeysNamesArray]], [[actionKeysImages]], [[actionName]], [[inputAction]] | ||
}} | }} | ||
Revision as of 10:22, 19 March 2021
Description
- Description:
- Returns Array containing dikCodes of keys, buttons and combos assigned to the given user action. Action names could be found in config class ControllerSchemes or user action names or user profile, for example:
keyWatch[] = { 24 };
To retrieve the value, use the property name without 'key':
In addition, some of the actions are also listed in here: inputAction/actionsactionKeys "Watch"; // 24
- Groups:
- Interaction
Syntax
- Syntax:
- actionKeys userAction
- Parameters:
- userAction: String
- Return Value:
- Array of Numbers
Examples
- Example 1:
_array = actionKeys "ReloadMagazine"
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Interaction