Pathfinding AI breaking after first loop

So basically I’m making an AI for a zombie that basically has two modes Recon and Chase. Right now my problem is with the Recon mode. The way it works is that the map will have slected points the zombie randomly walks to, the ai will randomly select a point and walk to it, rinse and reapeat until chase mode is activated. However what’s happening is that after the first loop of doing it the Zombie breaks and freezes.

Code For Recon Mode:

Is something else routinely calling on ReconMode(), if not I would expect the function to only run once when the script first starts.

Try moving ReconMode() into the end of the function (2 lines up) as opposed to being after the function. That way, it will re-trigger itself and should do the checks again.

This does not work

Char limit