O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

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 5. AI and Navigation

In this chapter, we will be covering the following recipes:

  • Laying PathNodes on a map
  • Laying NavMeshes on a map
  • Adding a scout to create NavMesh properties
  • Adding an AI Pawn via Kismet
  • Allowing a pawn to wander randomly around a map
  • Making a pawn patrol PathNodes on a map
  • Making a pawn randomly patrol PathNodes on a map
  • Allowing a pawn to randomly patrol a map with NavMeshes
  • Making a pawn follow us around the map with NavMeshes

Introduction

The Unreal Engine has two ways of handling pathfinding. They both have their pros and cons, despite being somewhat similar. Quite simply, they can be broken down into WayPoints and navigation meshes.

WayPoints

Pathfinding in the Unreal Engine is based on a pre-generated path network, which ...

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