Merge branch 'tribble-rez' of https://github.com/howard-stearns/hifi into howard-stearns-tribble-rez

This commit is contained in:
howard-stearns 2016-10-03 13:06:50 -07:00
commit 654461e97a

View file

@ -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);
}