Quote: I found those other threads and none of them really helped but thanx for
the info about the detection. This would be so much easier if amnesia
didnt have script areas and each monster had there own AI.
It does have an AI system, it just doesn't suit you're needs particularly well. Script areas aren't tied to enemies either, they have a very broad purpose, and you'll find them in all sorts of engines (albeit under different names). It's a perfectly solvable problem, but like many cool features is difficult to implement
What you're doing in solving this problem
is defining AI behavior, it's just being done in a very roundabout way not using the best tools available, but it's still rudimentary AI code. Someone's gotta write it