Chapter 10. AI for Controlling NPCs

The role of Artificial Intelligence (AI) in your game is quite important. In this chapter, we'll cover the following recipes for controlling your NPC characters with a bit of AI:

  • Laying down a Navigation Mesh
  • Following behavior
  • Connecting a Behavior Tree to a Character
  • Constructing Task nodes
  • Using Decorators for conditions
  • Using periodic services
  • Using Composite nodes – Selectors, Sequences, and Simple Parallel
  • AI for a Melee Attacker

Introduction

AI includes many aspects of a game's NPC as well as player behavior. The general topic of AI includes pathfinding and NPC behavior. Generally, we term the selection of what the NPC does for a period of time within the game as behavior.

AI in UE4 is well supported. A number of constructs exist to allow basic AI programming from within the editor. If the AI provided inside the engine doesn't suit your needs, custom AI programming from C++ can also be used.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.84.150