How to make AI speed change when AI detects you?

Hello, I’m having trouble figuring out the AI speed when the AI detects you at a certain range. Here’s what I have

I’ll be working on the animations of the AI later just want to get the Ai to change speeds and go back to walking which I believe I have already done the go back to walking above. Just need some help <3

save the pawn as say CurrentTarget, in your sequence use a SelectNode, if current target is valid then speed = 200, else 0.

i dont use pawn sensing so im not sure if it returns a NULL pawn when a target is lost, if not you’ll need to manage that yourself

also make sure the speed actually effects something, ie the MovementComponent

yea I’m new, I’m gonna need a pic to help my ■■■ lmao. I can see what you mean I’m just a bit slow :/. if I had a few friends helping me it would prob make the game go by smoother but I dont have any coding friends lmao