accessing local variables periodically
If indeed it's not possible, then some ways to deal with this includes:

* Allowing the engine to be updated without exposing implementation details of targets, thus allowing timers to be bypassed
* Associating an object with a timer, that is passed to the callback, or turning the callbacks into closures