for the state hunt couldnt you make the npc face the char in a given distance, but do a collision detection for walls and objects in between npc and char. if an object is there then scan another direction until i find my out???