Description
Returns the current state of given CT_CHECKBOXES control. Since Arma 3 v1.72 it is possible to query multiple checkboxes by providing checkbox index. For more information see CT_CHECKBOXES.
Note
The
"CheckBoxesSelChanged"control EH returns the control, index of changed checkbox and its current checked state. The checked state however is not a Boolean but Number 0 or 1. To convert ctrlChecked command output into number as well, use parseNumber command
Syntax
Syntax 1
ctrlChecked control
Parameters:
control: Control - CT_CHECKBOXES control. If control contain multiple checkboxes, only checkbox with index 0 is queried.
Returns: Boolean - true checked, false unchecked
Syntax 2
since arma3 1.72
control ctrlChecked index
Parameters:
control: Control - CT_CHECKBOXES controlindex: Number - checkbox index
Returns: Boolean - true checked, false unchecked
Examples
Example 1
ctrlChecked _control;
Example 2
_control ctrlChecked 3;