ctrlEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
Line 36: Line 36:




[[Category:Scripting Commands|CTRLENABLED]]
 
[[Category:Scripting Commands OFP 1.99|CTRLENABLED]]
[[Category:Scripting Commands OFP 1.99|CTRLENABLED]]
[[Category:Scripting Commands OFP 1.96|CTRLENABLED]]
[[Category:Scripting Commands OFP 1.96|CTRLENABLED]]

Revision as of 01:27, 5 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI Control

Syntax

Syntax:
Syntax needed
Parameters:
idc: Number - control ID
Return Value:
Return value needed

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

See also:
See also needed

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