Horror Game AI script recommendation?

So i’m making a small horror game and I am trying to create a single AI character that will not necissarily follow the player, but walk around the map (perhaps teleporting around also). The player should be just walking and, for example, see the ai staring at him. If he turns around or moves closer, it will attack.

So what i’m asking is, does anyone know any tutorials I could follow that would give me an idea of what i’m doing since i am new at this?


Here is a script I created for Zombies . . . – Enemy AI things to consider - Questions & Answers - Unity Discussions ( Refer to first ANSWER ). Also, keep in mind that you will have to tweak the animation settings and such in the code to fit your own models needs.