Quote from: Crimson Wizard on Fri 03/01/2020 00:21:28Neat! It works just fine now.
You missed * there in the import.
Also, you need to export the variable in the script body:
Quote from: Crimson Wizard on Fri 03/01/2020 00:21:28Sure, that'd be easier!
No, I meant, getting timer pointer by name instead of having to import/export global variable, like
Quote from: Crimson Wizard on Fri 03/01/2020 00:21:28
Regarding the way you suggested, if such function existed you would have to still create a timer object first, and it will be less safe, since it's a pointer and may appear to be null. I could add this as an option though.
Alternatively, I'd have to redo all the module and make timers non-pointers, which may be possible but have its own complications...
Oh, please don't do it then. That sounds like a lot of work!
I meant obviously like that:
Timer*MyTimer;
MyTimer.Start(120,eOnce);
So I though ,-if reading the name as a timer is less safe, it could automatically infer "=Timer". But I don't know how it works, and again, if that's a lot of work don't bother. Your module is already easy enough to use as it is
