# How would i make a bot that checks every room in a house for the player?

**URL:** <https://forums.unrealengine.com/t/how-would-i-make-a-bot-that-checks-every-room-in-a-house-for-the-player/330415>\
**Category:** AI\
**Tags:** Behavior-Tree, unreal-engine, bots, UE4, question, Blueprint\
**Created:** [August 30, 2015, 7:35pm UTC](https://forums.unrealengine.com/t/how-would-i-make-a-bot-that-checks-every-room-in-a-house-for-the-player/330415 "2015-08-30T19:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phlux](https://forums.unrealengine.com/u/Phlux)\
**Post date:** [August 30, 2015, 7:35pm UTC](https://forums.unrealengine.com/t/how-would-i-make-a-bot-that-checks-every-room-in-a-house-for-the-player/330415/1 "2015-08-30T19:35:57Z")

</div>

Hey guys. Getting right into it, I’m looking to have a single bot that will go through the level in search of the player. I’ve been toying with a few ideas of how I’d go about it but like all things, it’s always good to get a second pair of eyes on the problem.

As of right now, I’ve got the basic follow behaviour tree. I’m thinking I could have it to different points that would represent each room, and then check through the space around it. Should I even be using the behaviour tree? Would a simple function suffice? I also want to be able to run away, break line of sight and hide. I realize I might be asking a bit much so any help is greatly appreciated. Just need something to get me started and nudge me in the right direction.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [August 30, 2015, 7:55pm UTC](https://forums.unrealengine.com/t/how-would-i-make-a-bot-that-checks-every-room-in-a-house-for-the-player/330415/2 "2015-08-30T19:55:11Z")

</div>

https://www.youtube.com/embed/videoseries?list=PL3hM7_RDaHMz0umAPdszT172uhZTFuP94&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

This series have all of your answers. You’ll create a waypoint system like that(multiple waypoints are explained after Mob AI Part 1) and then place those waypoints in every room. And pawnsense will check if the player is on sight.
