Best way to make roaming and chasing monster?

Hello everyone! So i planning to make horror game, but i dont know the best way to make roaming monster. (which will be walking across all map randomly going right, left or straight, checking some rooms and so on). I used the waypoints thing when npc just going through closest waypoints and then checks them off so he won’t target them before he will run across entire map and waypoints will reset. Maybe there’s better way? Also when he see player (in his field of view) i want him to go to the place where he saw player last time, and it will be easy to make, but how to make him randomly going any direction after that? So he will be looking for player again, and in some cases run into direction player ran.

1 Like