Need help with disabling Pathfinding once the Object reaches a certain distance (TopDownMovment)

So I made the AI like this:

Condition: Enemy distance to Player is below 1000 pixels
Action: Set Variable “Pathfinding” = 0

And then;

Condition: Variable “Pathfinding” = 0
Action: Move Enemy to Player with an instant force of 400 pixels.

My problem is that once this script becomes executed, the AI continuously slides through the last position where the player previously went from before finally charging towards the player. The thing is, I want the enemy to keep on following the player before the pathfinding variable becomes disabled. Any ideas on how I should be able to do that?

I didn’t quite understand, but if you want to disable the pathfinding as your title suggests, you can use the action “de/activate behavior”.

Oh, okay, thanks! It seems that I didn’t even need a variable to disable pathfinding after all. I’m really sorry in case if you didn’t quite understand what I said…