AI behaves differently in different scenes

I ve used the FPS tutorial Al an s Ai Animation scripts, the enemies work, ie, attacks the FPS in one scene but not so in other scenes. Any suggestions ?

Has it got anything to do with layers ??

Thanks in advance

If you use some static vars in ai’s, you should reset them in everyscene.

For example if a=1, AI will do a behaviour, in the first scene after you’ve done an action the a=1 and AI did that behaviour, but if you don’t reset the a to 0 in the beginning of the 2. scene, a will still be 1 and the AI will still do that behaviour. So try reseting all the variables when you begin a new scene.