Client Event Timer Enabled/Disabled

Hi there,

I wonder if anyone can help? I have created a client event timer script which I want to count to 5 seconds and then reset a tag value. This bit all works absolutely fine but as the client event script is always running I don’t know what the value of my timer is at a given time. Therefore I want to enable it and disable it from a button script but I can’t seem to find the path to the timer.

Does anyone know how I can enable and disable my client event script at runtime?

Thanks in advance
Kevin Lee

You could have your client event script check a memory tag boolean value which you could use to enable/disable that section of script?

so in your script you’d have something like:

enabled = system.tag.readBlocking(["PathTo/TagToEnableScript"])[0].value
if enabled ==True:
      #Do things

Hi Jonathan,

Thanks for your reply. I think what you have written is exactly what I am looking for but I do not know the path to the client event timers?

Kind Regards

You will find them in here

image

1 Like