From ab7f3d573984ae41f1b772c4fa3f1b392a036e4f Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Mon, 18 Apr 2016 13:58:40 -0700 Subject: [PATCH] change the timeout to an interval so it constantly runs --- examples/entityScripts/exampleTimeoutNoCleanup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/entityScripts/exampleTimeoutNoCleanup.js b/examples/entityScripts/exampleTimeoutNoCleanup.js index c05a7223ec..99b8816388 100644 --- a/examples/entityScripts/exampleTimeoutNoCleanup.js +++ b/examples/entityScripts/exampleTimeoutNoCleanup.js @@ -30,9 +30,9 @@ print("preload - entityID:" + entityID); this.entityID = entityID; - Script.setTimeout(function() { + Script.setInterval(function() { var entityID = _this.entityID; - print("timer timeout in entityID:" + entityID); + print("timer interval in entityID:" + entityID); }, 3000); },