inputAction: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (That's pretty awesome, Fred!) |
No edit summary |
||
Line 51: | Line 51: | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on May 8, 2014 - 15:18 (UTC)</dd> | |||
<dt class="note">'''[[User:FlannelMouth|FlannelMouth]]'''</dt> | |||
<dd class="note"> | |||
[[inputAction]] does not return the actual state of the queried key when a dialog screen is open. Instead, it will always return 0. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 17:18, 8 May 2014
Description
- Description:
- Return the state of input devices mapped to given input action.
For some of the Arma 3 inputActions (extracted from arma3.exe), see: inputAction/actions.
See also Category:Key Actions for earlier Arma editions. - Groups:
- Uncategorised
Syntax
Examples
- Example 1:
inputAction "leanLeft"
Returns 1 if the button mapped to "leanLeft" is pressed currently else 0.- Example 2:
[] spawn { waitUntil {inputAction "reloadMagazine" > 0}; hint "Reload Key Pressed"; };
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
Notes
-
This command also returns values other than 0 and 1 (like 0.02 or 1.3). Any value greater than zero usually signals that the key or button is pressed. inputAction does not work reliably when used in RscDisplayMission's onKeyDown event handler (the same is probably true for other input related event handlers).
--Worldeater 07:38, 15 October 2010 (CEST)
Bottom Section
- Posted on May 8, 2014 - 15:18 (UTC)
- FlannelMouth
- inputAction does not return the actual state of the queried key when a dialog screen is open. Instead, it will always return 0.