mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 13:33:30 +02:00
8 lines
No EOL
340 B
JavaScript
8 lines
No EOL
340 B
JavaScript
var one_timer = Script.setTimeout(function() { print("One time timer fired!"); }, 10000);
|
|
var multiple_timer = Script.setInterval(function() { print("Repeating timer fired!"); }, 1000);
|
|
|
|
// this would stop a scheduled single shot timer
|
|
Script.clearTimeout(one_timer);
|
|
|
|
// this stops the repeating timer
|
|
Script.clearInterval(multiple_timer); |