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: