How do I make my AI walk not run

Hi Team!
before I get started id like to note that I did do a fair bit of searching around before I came here to ask this question
so if it’s something super simple, please, be gentle.

I have my AI doing pretty much everything I want except one thing, they have zero chill!
They basically sprint everywhere i want them to and although im fairly confident I can just lower their overall movement what id really like is for them to just walk around about their business and only go to sprint when they see me.

Any thoughts on how to go about this would be greatly appreciated, my experience level is like… embryo so use small words please or EILI5 :wink:

the simplest thing would be setting the max walk speed

You can do this: set your character max walk speed to 100 or 200. Then, the NPCs see you, you have a task node on your Behavior Tree that sets the max walk speed to 400 or 600. When the NPCs stop seeing the player, the max walk speed goes to 100 or 200 again.

Legend! Cheers for the speedy and helpful response.

Hi so what do you mean we will have a task node on the behavior tree?