Hello, I’m trying to use UIObject_OnUpdate_DisableIfLocalVarEquals to disable a OnUpdate with an UpdateRate, but it doesn’t seem to work as it’ll still keep firing the script every heartbeat. Here’s an example UI.
Is it really necessary to use that command? I see you’re calling a script as well, can’t it be handled from the script instead?
Show us the script and the conditions under which you want to disable the UI object and we can help you finding a solution.
Also, maybe I remember it wrong, but if you are using OnUpdate0 shouldn’t you use OnUpdate1 instead of OnUpdate? Granted, it’s been a while since I last toyed with an XML, so I’m not 100% sure about that.