actionKeysImages: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| [[Structured Text]] <nowiki>=</nowiki> '''actionKeysImages''' userAction |SYNTAX= | | [[Structured Text]] <nowiki>=</nowiki> '''actionKeysImages''' userAction |SYNTAX= | ||
|p1= userAction: [[String]] |= | |p1= userAction: [[String]] |PARAMETER1= | ||
| [[Structured Text]] |RETURNVALUE= | | [[Structured Text]] |RETURNVALUE= | ||
Line 19: | Line 19: | ||
|s2= [[Structured Text]] <nowiki>=</nowiki> '''actionKeysImages''' [userAction, maxKeys] |SYNTAX= | |s2= [[Structured Text]] <nowiki>=</nowiki> '''actionKeysImages''' [userAction, maxKeys] |SYNTAX= | ||
|p21= [userAction, maxKeys]: [[Array]] |= | |p21= [userAction, maxKeys]: [[Array]] |PARAMETER2= | ||
|p22= userAction: [[String]] |= | |p22= userAction: [[String]] |PARAMETER2= | ||
|p23= maxKeys: [[Number]] |= | |p23= maxKeys: [[Number]] |PARAMETER3= | ||
|r2= [[Structured Text]] |RETURNVALUE= | |r2= [[Structured Text]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>_text = actionKeysImages "ReloadMagazine"</pre> |= | |x1= <pre>_text = actionKeysImages "ReloadMagazine"</pre> |EXAMPLE1= | ||
|x2= <pre>_reload = actionKeysImages ["ReloadMagazine",1]</pre>will return '''"R"''' (incl. the quotation marks!) |= | |x2= <pre>_reload = actionKeysImages ["ReloadMagazine",1]</pre>will return '''"R"''' (incl. the quotation marks!) |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:27, 7 April 2019
Description
- Description:
- Returns a list of button images or names assigned to the given user action. A maximum of maxKeys keys is listed. You can find the action names in config class ControllerSchemes or user action names.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Structured Text = actionKeysImages userAction
- Parameters:
- userAction: String
- Return Value:
- Structured Text
Alternative Syntax
- Syntax:
- Structured Text = actionKeysImages [userAction, maxKeys]
- Parameters:
- [userAction, maxKeys]: Array
- userAction: String
- maxKeys: Number
- Return Value:
- Structured Text
Examples
- Example 1:
_text = actionKeysImages "ReloadMagazine"
- Example 2:
_reload = actionKeysImages ["ReloadMagazine",1]
will return "R" (incl. the quotation marks!)
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