mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:23:04 +02:00
revert junkyardreset
This commit is contained in:
parent
708c6e8d25
commit
c377254cb0
1 changed files with 11 additions and 11 deletions
|
@ -13,18 +13,18 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
var IMPORT_URL = "https://s3-us-west-1.amazonaws.com/hifi-content/eric/arfs/junkyard.json";
|
var IMPORT_URL = "https://s3-us-west-1.amazonaws.com/hifi-content/eric/arfs/junkyard.json";
|
||||||
var PASTE_ENTITIES_LOCATION = {x: 0, y: 20, z: 0};
|
var PASTE_ENTITIES_LOCATION = {x: 0, y: 0, z: 0};
|
||||||
// reset();
|
reset();
|
||||||
|
|
||||||
|
function reset() {
|
||||||
|
// Delete everything and re-import the junkyard arf
|
||||||
|
var e = Entities.findEntities(MyAvatar.position, 1000);
|
||||||
|
for (i = 0; i < e.length; i++) {
|
||||||
|
Entities.deleteEntity(e[i]);
|
||||||
|
}
|
||||||
|
importAssetResourceFile();
|
||||||
|
}
|
||||||
|
|
||||||
// function reset() {
|
|
||||||
// // Delete everything and re-import the junkyard arf
|
|
||||||
// var e = Entities.findEntities(MyAvatar.position, 1000);
|
|
||||||
// for (i = 0; i < e.length; i++) {
|
|
||||||
// Entities.deleteEntity(e[i]);
|
|
||||||
// }
|
|
||||||
// importAssetResourceFile();
|
|
||||||
// }
|
|
||||||
importAssetResourceFile()
|
|
||||||
function importAssetResourceFile() {
|
function importAssetResourceFile() {
|
||||||
Clipboard.importEntities(IMPORT_URL);
|
Clipboard.importEntities(IMPORT_URL);
|
||||||
Clipboard.pasteEntities(PASTE_ENTITIES_LOCATION);
|
Clipboard.pasteEntities(PASTE_ENTITIES_LOCATION);
|
||||||
|
|
Loading…
Reference in a new issue