actionKeysImages: Difference between revisions

From Bohemia Interactive Community
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]] |= Parameter 1
|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]] |= Parameter 2
|p21= [userAction, maxKeys]: [[Array]] |PARAMETER2=


|p22= userAction: [[String]] |= Parameter 2
|p22= userAction: [[String]] |PARAMETER2=


|p23= maxKeys: [[Number]] |= Parameter 3
|p23= maxKeys: [[Number]] |PARAMETER3=


|r2= [[Structured Text]] |RETURNVALUE=
|r2= [[Structured Text]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_text = actionKeysImages "ReloadMagazine"</pre> |= Example 1
|x1= <pre>_text = actionKeysImages "ReloadMagazine"</pre> |EXAMPLE1=
|x2= <pre>_reload = actionKeysImages ["ReloadMagazine",1]</pre>will return '''"R"''' (incl. the quotation marks!) |= Example 2
|x2= <pre>_reload = actionKeysImages ["ReloadMagazine",1]</pre>will return '''"R"''' (incl. the quotation marks!) |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:27, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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

See also:
actionKeysactionKeysNamesactionKeysNamesArrayactionNameinputAction

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

Notes

Bottom Section