How to make a Mr X styled AI?

How would I make a script to make a simple AI which is similar to that of Mr X from resident evil 2.
I want it to search for my player around the map I have already designed, and if it sees the player, it begins to chase them until it eventually loses them again at which point it begins searching again.
Any help would be appreciated, thanks!