ctrlEnable – Talk

From Bohemia Interactive Community
Revision as of 07:06, 2 January 2021 by Lou Montana (talk | contribs) (Text replacement - " ArmA2 " to " Arma 2 ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There appears to be some inconsistencies with the two syntax variations and use of "with uiNamespace {}". If you use the variation with "[]" you do not appear to need to use "with uiNamespace" (nor do you get a diable serialization message), but you do with the other variation. Examples:

Ok:

ctrlEnable [101, false];

or

with uiNamespace do {(findDisplay 100 displayCtrl 101) ctrlEnable false;};

Not Ok (missing ";" or other error):

findDisplay 100 displayCtrl 101 ctrlEnable false;

This may apply to other commands as well but I have not tested it extensively. Test Arma 2 v1.05 -Loyalguard 22:45, 30 April 2010 (CEST)