2024-07-03 16:13:14 -05:00
|
|
|
for (let i = 0; i < intersections.length; ++i) {
|
|
|
|
if (intersections[i][0].tags) {
|
|
|
|
if (intersections[i][0].tags.includes('door')) {
|
2024-07-03 21:57:07 -05:00
|
|
|
if (other.Player) {
|
|
|
|
ecs.switchEcs(
|
|
|
|
other,
|
|
|
|
entity.Ecs.path,
|
|
|
|
{
|
|
|
|
Position: {
|
|
|
|
x: 72,
|
|
|
|
y: 304,
|
|
|
|
},
|
2024-07-03 16:13:14 -05:00
|
|
|
},
|
2024-07-03 21:57:07 -05:00
|
|
|
);
|
|
|
|
}
|
2024-07-03 16:13:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|