mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Cleanup script for chess boards
This commit is contained in:
parent
58796df843
commit
94f3f461ce
1 changed files with 8 additions and 0 deletions
8
examples/cleanupChessboards.js
Normal file
8
examples/cleanupChessboards.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
var entities = Entities.findEntities(MyAvatar.position, 10000);
|
||||
var URL = "https://s3.amazonaws.com/hifi-public/models/props/chess/";
|
||||
|
||||
for(var i in entities) {
|
||||
if (Entities.getEntityProperties(entities[i]).modelURL.slice(0, URL.length) === URL) {
|
||||
Entities.deleteEntity(entities[i]);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue