How to make npc pathfinding following a line/route that has been set

Godot Version



Hi I want to create a pathfinding NPC whose path has been set and changed at a certain hour, the path is like a line that can be determined where to walk turning.

But I want the NPC to walk around if the path is blocked by objects or players and then walk along the path again.

I’ve tried adding each NPC has its own navmesh but then other NPCs can’t pass through the other npc’s navmesh.