ctrlEnabled

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint version 1.5
  Arguments of this scripting command have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.5

Description

Description:
Returns if a control on the currently active user dialog is enabled. Disabled controls cannot be focused. Read Dialog Control for more information about user dialogs and controls.

Syntax

Syntax:
Boolean = ctrlEnabled idc
Parameters:
idc: Number - control ID
Return Value:
Boolean - true if the control is enabled, false if not.

Alternative Syntax

Syntax:
Boolean = ctrlEnabled controlName
Parameters:
controlName: Control
Return Value:
Boolean

Examples

Example 1:
if (!(ctrlEnabled 100)) then
{
  ctrlEnable [100, true]
};
Example 2:
_enabled = ctrlEnabled _control

Additional Information

Multiplayer:
-
See also:
ctrlEnable

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section