quote:
Originally posted by Stranded:
Can anyone code that the enemy stores the players last position and then walks towards it when he is in state_hunt?

A late second answer:

the code of the templates that I had quoted does exactly this: it stores the last position and the enemy walks towards it and if the player is still visible from that position the enemy attacks him again.

Your quotations of the code are an enigma to me too, but it works. Test it! Build a wall, place an enemy behind, go to him with the player until he recognizes him and run behind the wall!