Timer: Difference between revisions
Jump to navigation
Jump to search
m (New page: A '''timer''' object refers to a timer set to execute a function a certain number of times with a specified delay. Note that after a timer has completed all its iterations, it is destroye...) |
mNo edit summary |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
A | A [[timer]] object refers to a timer set to execute a function a certain number of times with a specified delay. | ||
Note that after a timer has completed all its iterations, it is destroyed and any stored pointers to it become invalid. | Note that after a timer has completed all its iterations, it is destroyed and any stored pointers to it become invalid. Also timers are not under the ''resource'' hierarchy, because they are not elements, for instance, if you create a timer, it will not be destroyed when the resource in which it was created is stopped, so in this case you should kill the timer manually. | ||
==Related scripting functions== | ==Related scripting functions== | ||
Line 7: | Line 7: | ||
* [[killTimer]] | * [[killTimer]] | ||
* [[setTimer]] | * [[setTimer]] | ||
* [[isTimer]] | |||
* [[getTimerDetails]] |
Latest revision as of 11:33, 11 June 2023
A timer object refers to a timer set to execute a function a certain number of times with a specified delay.
Note that after a timer has completed all its iterations, it is destroyed and any stored pointers to it become invalid. Also timers are not under the resource hierarchy, because they are not elements, for instance, if you create a timer, it will not be destroyed when the resource in which it was created is stopped, so in this case you should kill the timer manually.