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?