userInputDisabled

From Bohemia Interactive Community
Revision as of 16:32, 13 April 2025 by Lou Montana (talk | contribs) (Move example to disableUserInput)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hover & click on the images for description

Description

Description:
Returns whether or not user input is disabled.
The disabled input system internally counts how many times cdisableUserInput true has been called - see Example 2.
Groups:
Interaction

Syntax

Syntax:
userInputDisabled
Return Value:
Boolean

Examples

Example 1:
Toggles user input
Copy
disableUserInput !userInputDisabled;
Example 2:
Copy
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