O'Reilly logo

CryENGINE 3 Cookbook by Dan Tracy, Sean Tracy

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

Placing the enemy AI

In this recipe, we will show how you may place down simple AI grunts from the Entities rollout for the player to fight against.

Getting ready

  • Before we begin, you must have the Sandbox 3 open
  • Then open My_Level.cry

How to do it...

  1. In the RollupBar, click on the Entity button.
  2. Under the AI folder, find Grunt.
  3. With the Follow Terrain enabled, click-and-drag anywhere on your terrain.

How it works...

The Grunt is a simple AI entity that packages a whole lot of extra properties that we will touch on later in this chapter. The Grunt itself is a simplistic human AI that borrows a lot of its functionality from the basic actor defined in LUA, which means it shares a lot of the human characteristics which the player also utilizes, such as movement. ...

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