actionKeysNamesArray: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "") |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|1.51 | |version1= 1.51 | ||
|game2= tkoh | |||
|version2= 1.00 | |||
|game3= arma3 | |||
|version3= 0.50 | |||
|gr1= Interaction | |gr1= Interaction | ||
| Returns a list of button names assigned to the given user action. You can find the action names in config class ControllerSchemes or [[:Category:Key_Actions|user action names]]. | |descr= Returns a list of button names assigned to the given user action. You can find the action names in config class ControllerSchemes or [[:Category:Key_Actions|user action names]]. | ||
| '''actionKeysNamesArray''' userAction | |s1= '''actionKeysNamesArray''' userAction | ||
|p1= userAction: [[String]] - Name of the action | |p1= userAction: [[String]] - Name of the action | ||
| [[Array]] of [[String|Strings]] | |r1= [[Array]] - An array of [[String|Strings]] | ||
|s2= '''actionKeysNamesArray''' [userAction, maxKeys, inputDevicePriority] | |s2= '''actionKeysNamesArray''' [userAction, maxKeys, inputDevicePriority] | ||
|p21= userAction: [[String]] - | |p21= userAction: [[String]] - Name of the action | ||
|p22= maxKeys: [[Number]] - | |p22= maxKeys: [[Number]] - Maximum number of keys to return | ||
|p23= inputDevicePriority: [[String]] - | |p23= inputDevicePriority: [[String]] - Result sorted by <tt>inputDevicePriority</tt> with values: {{Since|arma3|1.36|y}} | ||
* <tt>"Mouse"</tt> | * <tt>"Mouse"</tt> | ||
* <tt>"Keyboard"</tt> | * <tt>"Keyboard"</tt> | ||
Line 40: | Line 48: | ||
|seealso= [[actionKeys]], [[actionKeysImages]], [[actionKeysNames]], [[actionName]], [[inputAction]] | |seealso= [[actionKeys]], [[actionKeysImages]], [[actionKeysNames]], [[actionName]], [[inputAction]] | ||
}} | }} | ||
Revision as of 08:49, 16 April 2021
Description
- 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.
- Groups:
- Interaction
Syntax
- Syntax:
- actionKeysNamesArray userAction
- Parameters:
- userAction: String - Name of the action
- Return Value:
- Array - An array of Strings
Alternative Syntax
- Syntax:
- actionKeysNamesArray [userAction, maxKeys, inputDevicePriority]
- Parameters:
- userAction: String - Name of the action
- maxKeys: Number - Maximum number of keys to return
- inputDevicePriority: String - Result sorted by inputDevicePriority with values: Template:Since
- "Mouse"
- "Keyboard"
- "Stick"
- "Gamepad"
- "Tracker"
- "Combo" (mouse and keyboard combinations)
- "Controler"sic (any controller other than mouse or keyboard)
- "Unsorted"
- Return Value:
- Array of Strings
Examples
- Example 1:
_actionList = actionKeysNamesArray "ReloadMagazine";
- Example 2:
_actionList = actionKeysNamesArray ["ReloadMagazine", 1];
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