I have tried to set a timer to run a function in a couple of projects but I could never get it to work so I just end up using loops of some sort.
This is an example of how I have been trying to get them to work but I can't get any result what am I doing wrong?
I haven't tested the code below I just wrote it off top of my head as example of what I have been trying to do.
Nothing happens, TimedActivated never gets called. In theory it should be called once a second and then when Cas
Alright, apparently from what support is telling me and what I can gather from the manual the Timers set and kill function must be in the same scope physically. Though that is not said any where specifically.
The work around to make a timer stop from within a separate scope like when you set a timer from outside a function and need to kill it from within a function or a separate function when a certain thing happens or doesn't is to use a toggle.
The following code works where the other ve