createFlashlight.js - Close script after running

Close the createFlashlight.js script after running once to prevent a flashlight from being created each time you start Interface
This commit is contained in:
Thijs Wenker 2015-09-24 00:43:50 +02:00
parent 75a9dd13be
commit 6bb873d327

View file

@ -1,5 +1,5 @@
//
// createFlashligh.js
// createFlashlight.js
// examples/entityScripts
//
// Created by Sam Gateau on 9/9/15.
@ -46,4 +46,7 @@ function cleanup() {
}
Script.scriptEnding.connect(cleanup);
Script.scriptEnding.connect(cleanup);
// Close script after running once to prevent a flashlight from being created each time you start Interface
Script.stop();