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

Respawning AI

In this recipe, we will explore how you will be able to utilize the Territory and Wave systems along with a little bit of FlowGraph scripting to make your AI respawn after a couple of seconds of death.

Getting ready

  • Before we begin, you must have Sandbox 3 open
  • Then open My_Level.cry
  • Place down one Grunt within the level

How to do it...

Making a territory:

  1. From the RollupBar, open the Objects tab and click the Entity button.
  2. Open the AI folder and select AITerritory.
  3. Click down four points to surround the AI Grunt (double-click to finalize).

Placing the AI wave entity:

  1. From the RollupBar, open the Objects tab and click the Entity button.
  2. Open the AI folder and select AIWave.
  3. Place the AI wave entity close to the AITerritory.

Linking the territory ...

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