mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:01:47 +02:00
Merge branch 'tribble-rez' of https://github.com/howard-stearns/hifi into howard-stearns-tribble-rez
This commit is contained in:
commit
654461e97a
1 changed files with 40 additions and 36 deletions
|
@ -54,8 +54,12 @@ function randomVector(range) {
|
|||
};
|
||||
}
|
||||
|
||||
Script.setInterval(function () {
|
||||
if (!Entities.serversExist() || !Entities.canRez()) {
|
||||
if (!Entities.canRezTmp()) {
|
||||
Window.alert("Cannot create temp objects here.");
|
||||
Script.stop();
|
||||
} else {
|
||||
Script.setInterval(function () {
|
||||
if (!Entities.serversExist()) {
|
||||
return;
|
||||
}
|
||||
if (totalCreated >= NUMBER_TO_CREATE) {
|
||||
|
@ -91,5 +95,5 @@ Script.setInterval(function () {
|
|||
|
||||
totalCreated++;
|
||||
}
|
||||
}, SCRIPT_INTERVAL);
|
||||
|
||||
}, SCRIPT_INTERVAL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue