Arma 3 Scripting

userInputDisabled

  • Arma 3 v1.60

Command · Markdown · JSON · original wiki page

Description

Returns whether or not user input is disabled.

Important

The disabled input system internally counts how many times disableUserInput true has been called - see Example 2.

Syntax

userInputDisabled

Returns: Boolean

Examples

Example 1

Toggles user input

disableUserInput !userInputDisabled;

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

See also

disableUserInput