mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Update spawnShortbow.js to stop after done spawning
This commit is contained in:
parent
0fab462181
commit
7e5c1907d9
1 changed files with 2 additions and 13 deletions
|
@ -169,16 +169,5 @@ function createLocalGame() {
|
|||
}
|
||||
}
|
||||
|
||||
if (Script.isClientScript()) {
|
||||
createLocalGame();
|
||||
//var gameManager = new ShortbowGameManager(scoreboardID, bowPositions, spawnPositions);
|
||||
|
||||
function cleanup() {
|
||||
for (var i = 0; i < entityIDs.length; ++i) {
|
||||
Entities.deleteEntity(entityIDs[i]);
|
||||
}
|
||||
gameManager.cleanup();
|
||||
}
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
||||
}
|
||||
createLocalGame();
|
||||
Script.stop();
|
||||
|
|
Loading…
Reference in a new issue