userInputDisabled: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) | Lou Montana (talk | contribs)  m (Move example to disableUserInput) Tag: Manual revert | ||
| (19 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{RV|type=command | ||
| | arma3 | |game1= arma3 | ||
| |1.60 | |version1= 1.60 | ||
| |gr1= Interaction | |gr1= Interaction | ||
| | Returns  | |descr= Returns whether or not user input is disabled. | ||
| | '' | {{Feature|important|The disabled input system internally ''counts'' how many times <sqf inline>disableUserInput true</sqf> has been called - see {{Link|#Example 2}}.}} | ||
| |  | |s1= [[userInputDisabled]] | ||
| | [[ | |r1= [[Boolean]] | ||
| |x1= Toggles user input<sqf>disableUserInput !userInputDisabled;</sqf> | |||
| |x2= <sqf> | |||
| disableUserInput true; | |||
| disableUserInput true; | |||
| disableUserInput true; | |||
| diag_log str userInputDisabled; // true | |||
| disableUserInput false; | |||
| diag_log str userInputDisabled; // true | |||
| disableUserInput false; | |||
| diag_log str userInputDisabled; // true | |||
| disableUserInput false; | |||
| diag_log str userInputDisabled; // false - control is regained only here | |||
| </sqf> | |||
| |seealso= [[disableUserInput]] | |||
| [[ | }} | ||
Latest revision as of 15:32, 13 April 2025
Description
- Description:
- Returns whether or not user input is disabled.
- Groups:
- Interaction
Syntax
- Syntax:
- userInputDisabled
- Return Value:
- Boolean
Examples
- Example 1:
- Toggles user input
- Example 2:
- disableUserInput true; disableUserInput true; disableUserInput true; diag_log str userInputDisabled; // true disableUserInput false; diag_log str userInputDisabled; // true disableUserInput false; diag_log str userInputDisabled; // true disableUserInput false; diag_log str userInputDisabled; // false - control is regained only here
Additional Information
- See also:
- disableUserInput
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
 
	