#Get entity with a specific tag

1 messages · Page 1 of 1 (latest)

lone badge
#

How can I get an entity with a specific tag and kill it?

quartz copper
#
// assuming you have access to the dimension 
const entities = dimension.getEntities({ tags: ["tag"] });
for (const e of entities) {
   e.kill();
}