mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
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:
parent
75a9dd13be
commit
6bb873d327
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue