Merge pull request #5887 from thoys/patch-5

[Scripts] createFlashlight.js - Close script after running
This commit is contained in:
Brad Hefta-Gaub 2015-09-23 20:17:47 -07:00
commit 4a4b9e1cd4

View file

@ -1,5 +1,5 @@
// //
// createFlashligh.js // createFlashlight.js
// examples/entityScripts // examples/entityScripts
// //
// Created by Sam Gateau on 9/9/15. // 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();