Arma 3 Scripting

Command in Interaction

userInputDisabled

Also available as Markdown and JSON, or read the 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