You can use line of sight behaviour on the player where if player has sight of the enemy then the enemy will stop, you can set the line of sight to a 360deg range around the player. Or from the enemy perspective you can stop moving along a path if distance between enemy and player is a certain value, use distance() command with the two objects enemy and player.
Thanks for the advise. I did what you said with move to behavior. I tried pathfinding calculete player location and move along when calculated but didnt work. Enemies just standing.
How do I make it with pathfinding?.
This is move to behavior one:
This is my sheet with move to behavior.