Building Smart Enemies with Artificial Intelligence

In this chapter, we'll add an additional challenge to our gameplay by making enemies that pose a threat to the player. To do so, we'll leave behind our target Cylinders in favor of enemies that have AI behavior. We want to set up enemies that have the potential to pose a threat to the player and are capable of analyzing the world around them in order to make decisions. To accomplish this, we are going to learn about Unreal Engine 4's built-in tools for handling AI behavior and how those tools interact with our Blueprint scripting. In the process, we will cover these topics:

  • Setting up the enemy Actor to navigate
  • Creating navigation behavior
  • Making the AI chase the player

Get Blueprints Visual Scripting for Unreal Engine - Second Edition 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.