chrs 2 Posted April 16, 2016 Hi, I have an RscTittles and I would like to change a RscProgress control in my RscTittles via a script in a ''Fired" EventHandler. So I've added GUI an event handler like this to the Tittles config that defines the control as a variable in missionNameSpace: OnLoad = "MyControl = (_this select 0);"; And have a event handler that has this code inside: disableSerialization; MyControl progressSetPosition ... This works fine my problem is the it keeps producing this error:http://images.akamai.steamusercontent.com/ugc/504776474588324454/D2D2B7B531FEEAF7F7659CEF6E0E67C0D45E99C9/I know you can save variables to dialogs using the set variable command, but RscTittles don't seem to accessible in the same way via the FindDisplay / DisplayCtrl. Can anyone suggest somewhere I can store my control as a variable to avoid getting this error message. (everything works fine, just the error message pops up the first time the script is run) Thanks. Share this post Link to post Share on other sites
fn_Quiksilver 1633 Posted April 16, 2016 OnLoad = "uinamespace setvariable ['MyControl',(_this select 0)];"; disableserialization (uinamespace getvariable ['MyControl',controlNull]) progressSetPosition ... https://community.bistudio.com/wiki/uiNamespace Share this post Link to post Share on other sites
chrs 2 Posted April 16, 2016 OnLoad = "uinamespace setvariable ['MyControl',(_this select 0)];"; disableserialization (uinamespace getvariable ['MyControl',controlNull]) progressSetPosition ... https://community.bistudio.com/wiki/uiNamespace Great! Problem solved. Thanks. Share this post Link to post Share on other sites