Guys, my question is about the function event.findDirectionTo(x, y).
Are there settings available to change its behavior? Namely, I would like it to either make NPCs ignore that they can pass through obstacles in their pathfinding, or ignore the NPCs / events / player when pathfinding, and stick to the map tiles only. Is it possible?
Here is the context - my bar gets traffic jams. (I use a "JS backend" to move folks around, although the NPCs themselves are traditional events dynamically spawned. This is so there is a persistent world with townfolks who go to work, go home, and sometimes patron the bar.) These backlogs are cleared by letting an event move through obstacles. But this is when the problem with findDirectionTo(x, y) starts - the event, i.e. the circled one starts moving though the walls (screenshot at the bottom of the post).
This is what the current kerfuffle looks like:
This could be easily cured if, say, the event continues to behave as if it can't walk through obstacles or if findDirectionTo(x, y) would ignore player and other NPCs, but I do not know how to change the settings on findDirectionTo(x, y).
Are there settings available to change its behavior? Namely, I would like it to either make NPCs ignore that they can pass through obstacles in their pathfinding, or ignore the NPCs / events / player when pathfinding, and stick to the map tiles only. Is it possible?
Here is the context - my bar gets traffic jams. (I use a "JS backend" to move folks around, although the NPCs themselves are traditional events dynamically spawned. This is so there is a persistent world with townfolks who go to work, go home, and sometimes patron the bar.) These backlogs are cleared by letting an event move through obstacles. But this is when the problem with findDirectionTo(x, y) starts - the event, i.e. the circled one starts moving though the walls (screenshot at the bottom of the post).
This is what the current kerfuffle looks like:
This could be easily cured if, say, the event continues to behave as if it can't walk through obstacles or if findDirectionTo(x, y) would ignore player and other NPCs, but I do not know how to change the settings on findDirectionTo(x, y).