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 ...

Get Game AI Pro 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.