for (const [{tags}] of intersections) { if (tags && tags.includes('door')) { if (other.Player) { ecs.switchEcs( other, entity.Ecs.path, { Position: { x: 72, y: 304, }, }, ); } } }