# How do I make my AI walk not run

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774>\
**Category:** AI\
**Tags:** run, walk, unreal-engine, question\
**Created:** [June 6, 2018, 12:09pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774 "2018-06-06T12:09:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ma9net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ma9net](https://forums.unrealengine.com/u/Ma9net)\
**Post date:** [June 6, 2018, 12:09pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774/1 "2018-06-06T12:09:48Z")

</div>

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 😉

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [June 6, 2018, 1:23pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774/2 "2018-06-06T13:23:01Z")

</div>

the simplest thing would be setting the max walk speed

---

<div class="post-metadata">

**Author:** ![Xptohz3\_turbo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xptohz3\_turbo](https://forums.unrealengine.com/u/Xptohz3_turbo)\
**Post date:** [June 6, 2018, 1:39pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774/3 "2018-06-06T13:39:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ma9net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ma9net](https://forums.unrealengine.com/u/Ma9net)\
**Post date:** [June 6, 2018, 10:15pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774/4 "2018-06-06T22:15:27Z")

</div>

Legend! Cheers for the speedy and helpful response.

---

<div class="post-metadata">

**Author:** ![LordRoxas\_13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LordRoxas\_13](https://forums.unrealengine.com/u/LordRoxas_13)\
**Post date:** [February 18, 2022, 2:24am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-ai-walk-not-run/426774/5 "2022-02-18T02:24:29Z")

</div>

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