I need help making a task run once only when my AI has seen me?

I’m using a BT for my AI and I want it to stop and scream at my character when it first sees me and then starts chasing me and I want this to repeat every time it loses sight of me. I have put the animation for this into my BT but it just keeps firing off and freezes my AI and it just gets stuck on this. I’m sure it’s a simple fix where I have to set a certain Boolean to allow and stop this, But I don’t know how to go about implementing it correctly? I’m very new to Unreal so please be gentle if the problem is my own stupidity lol

after you play the animation. do a delay for how long the length of the animation then do set anim mode (mesh) and you should be good