Only beginning pathfinding when you are a certain distance from an enemy in Godot.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.