20 lines
368 B
JavaScript
20 lines
368 B
JavaScript
for (let i = 0; i < intersections.length; ++i) {
|
|
if (intersections[i][0].tags) {
|
|
if (intersections[i][0].tags.includes('door')) {
|
|
if (other.Player) {
|
|
ecs.switchEcs(
|
|
other,
|
|
entity.Ecs.path,
|
|
{
|
|
Position: {
|
|
x: 72,
|
|
y: 304,
|
|
},
|
|
},
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|