O'Reilly logo

Game AI Pro 2 by Steven Rabin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 27

Looking for Trouble

Making NPCs Search Realistically

Rich Welsh

27.1 Introduction

Searching is so second nature to us that apart from the inconvenience of having misplaced something, we’re naturally able to effectively track down missing items. What thought processes do we go through while we’re searching? How can we take these and apply them to our nonplayer characters (NPCs) in order to make them appear more realistic when they’re searching? If you’re searching for answers to these questions, then look no further!

27.2 Types of Searching

The main focus of this chapter is to outline the way in which NPCs search for hostile targets in a title that I am unable to name. Since the target in this game is a player character, the target ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required