Ai Perception Help

So I figured this would be a little complicated to describe so I made a short video

https://youtu.be/zmVKXOrrN54

But if you would rather read. I have been trying to make the AI attack me until I am dead however whenever he attacks me his perception updates to the player being out of sight even though I’m standing right in front of him and I am wondering how I fix that.