Hi,
You can set how often the AI checks the sensing.
I have mine set to
when I go behind a wall with enough distance, the AI gives up.
Not the best example as mine does not move, but you might be able to see that when I move behind the glass, he stops firing as he can not longer see me. (Ignore the irony)This is an overview on how I dealt with sensing.