# Modify A.I to randomly run

**URL:** <https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958>\
**Category:** AI\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 3, 2016, 7:32am UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958 "2016-01-03T07:32:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4a8e5f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4a8e5f4a](https://forums.unrealengine.com/u/anonymous_user_4a8e5f4a)\
**Post date:** [January 3, 2016, 7:32am UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958/1 "2016-01-03T07:32:54Z")

</div>

Hi! I want to ask… i followed the tutorial by tesla for ai sensing. But i want to modify the ai. Like if he doesnt see the player he has to run across the map, and if he losts the player he continues to run across the map. Any ideas?

---

<div class="post-metadata">

**Author:** ![FilipeTessaro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/filipetessaro/32/1194666_2.png) [@FilipeTessaro](https://forums.unrealengine.com/u/FilipeTessaro)\
**Post date:** [January 11, 2016, 6:55pm UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958/2 "2016-01-11T18:55:18Z")

</div>

Hi, please show the tutorial so I can see what you did and be easier to help you, thanks

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [January 12, 2016, 6:55am UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958/3 "2016-01-12T06:55:57Z")

</div>

Try using the GetRandomPointInNavigableRadius or GetRandomReachablePointInRadius nodes to query the navigation data for an acceptable random point for the AI to move to when it loses the Player.

 ![74029-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/b/37b3b115c7e4f5cb4b8649bdcfb96938f44c96c5.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4a8e5f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4a8e5f4a](https://forums.unrealengine.com/u/anonymous_user_4a8e5f4a)\
**Post date:** [January 13, 2016, 3:22pm UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958/4 "2016-01-13T15:22:24Z")

</div>

Not working because i need origin point

---

<div class="post-metadata">

**Author:** ![FilipeTessaro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/filipetessaro/32/1194666_2.png) [@FilipeTessaro](https://forums.unrealengine.com/u/FilipeTessaro)\
**Post date:** [January 13, 2016, 3:24pm UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958/5 "2016-01-13T15:24:41Z")

</div>

use the actor Ai\_character location as origin and set the radius you want, so it will be the maximum range far way he will go from the origin

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4a8e5f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4a8e5f4a](https://forums.unrealengine.com/u/anonymous_user_4a8e5f4a)\
**Post date:** [January 15, 2016, 2:30am UTC](https://forums.unrealengine.com/t/modify-a-i-to-randomly-run/342958/6 "2016-01-15T02:30:26Z")

</div>

Thanks mate! It worked!
