AI wont stop chasing player

Im trying to make an AI that will roam around randomly until it sees the player, in which it will chase the player until it hasn’t seen him for x amount of seconds.
Currently it sort of works, only it doesn’t stop chasing the player.


I think its because the move to never finishes so the selector can’t switch.


This is how im setting the targetactor variable
Im clearing it after 2 seconds, so every 2 seconds it will pretty much check if the player is still being seen.

also as a side note, is there a way to change an AI or pawns navmesh so i can set it to use a specific one, if i have multiple?