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

Phlux
Sun, 30 Aug 2015 19:35:57 +0000
AI

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!

2 posts - 1 participant