# Making AI Choose between the points on map randomly. Help!

**URL:** <https://forums.unrealengine.com/t/making-ai-choose-between-the-points-on-map-randomly-help/84242>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 2, 2017, 1:25am UTC](https://forums.unrealengine.com/t/making-ai-choose-between-the-points-on-map-randomly-help/84242 "2017-02-02T01:25:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adm.ShrimpTTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adm.ShrimpTTV](https://forums.unrealengine.com/u/Adm.ShrimpTTV)\
**Post date:** [February 2, 2017, 1:25am UTC](https://forums.unrealengine.com/t/making-ai-choose-between-the-points-on-map-randomly-help/84242/1 "2017-02-02T01:25:33Z")

</div>

Hello,  
So i need help with the blueprint i made for my ai. I can make its so he goes between the points on the map in order but i want him to choose the points randomly so he is less predictable, and make it so he stops at certain points for a couple of seconds to kind of look around.  
Thanks!

 ![the blueprint.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/7/b972b6965a6eac3ff3ca67b93f05515bf6be2413.png)

---

<div class="post-metadata">

**Author:** ![Adm.ShrimpTTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adm.ShrimpTTV](https://forums.unrealengine.com/u/Adm.ShrimpTTV)\
**Post date:** [February 2, 2017, 1:28am UTC](https://forums.unrealengine.com/t/making-ai-choose-between-the-points-on-map-randomly-help/84242/2 "2017-02-02T01:28:50Z")

</div>

Oh and ps i am new so you would have to explain in detail how to do it.

---

<div class="post-metadata">

**Author:** ![tootc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tootc](https://forums.unrealengine.com/u/tootc)\
**Post date:** [February 2, 2017, 10:11am UTC](https://forums.unrealengine.com/t/making-ai-choose-between-the-points-on-map-randomly-help/84242/3 "2017-02-02T10:11:53Z")

</div>

Hello,

first time poster so bear with me 🙂

What you can do is actually use a “GetAllActorsOfClass” node to get all your points, put those in an array, and using the “Random” node, fetch a random value from your array.

 ![Untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/b/6b4e9267095dbd7c46fd482c9eaa14da08e32de3.png)

hope this help and that the pic is actually uploaded 🙂

---

<div class="post-metadata">

**Author:** ![tootc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tootc](https://forums.unrealengine.com/u/tootc)\
**Post date:** [February 2, 2017, 10:36am UTC](https://forums.unrealengine.com/t/making-ai-choose-between-the-points-on-map-randomly-help/84242/4 "2017-02-02T10:36:05Z")

</div>

Hello,

first time poster so hope it all goes well… 🙂

a way to do this is to get all the the points the pawn can go to, store those points in an array, and randomly call an element from this array

 ![Untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/b/6b4e9267095dbd7c46fd482c9eaa14da08e32de3.png)
