Excerpt |
---|
Queue a call to a function until a later frame. |
Purpose
Unlike setTimer(), queue() does not repeat. It will make a single call to the named function at a later frame in the game.
The function, when called, will be run in the context of the global scope ("this" will be the global scope). So, if you've added properties or methods to the function, they won't be available from within the function when it's run as a result of being queued.
Queued functions persist the save/load cycle. You can therefore look at Saved game files to see what queued functions were defined at the time the game was saved.Invoke a function at some point in the future... |