enemy AI

hi, could someone tell me how to make enemy AI. Because i need the enemy to "wander" around the level and shott you when it sees you. This is a prety advanced question, should i have put this in the advanced forum area?
thanks
twigser

thanks
twigser