Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CryENGINE 3 Cookbook

You're reading from   CryENGINE 3 Cookbook Over 90 recipes written by Crytek developers for creating third-generation real-time games

Arrow left icon
Product type Paperback
Published in Jun 2011
Publisher Packt
ISBN-13 9781849691062
Length 324 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Sean P Tracy Sean P Tracy
Author Profile Icon Sean P Tracy
Sean P Tracy
Dan Tracy Dan Tracy
Author Profile Icon Dan Tracy
Dan Tracy
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

CryENGINE 3 Cookbook
Credits
About the Authors
www.PacktPub.com
Preface
1. CryENGINE 3: Getting Started FREE CHAPTER 2. Sandbox Basics 3. Basic Level Layout 4. Environment Creation 5. Basic Artificial Intelligence 6. Asset Creation 7. Characters and Animation 8. Creating Vehicles 9. Game Logic 10. Track View and Cut-Scenes 11. Fun Physics 12. Profiling and Improving Performance Index

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 to the wave:

  1. Select AITerritory1 and click the Pick button.

  2. Click AIWave1 to pick that entity as the target.

Giving the AI Grunt the territory and wave IDs:

  1. Select the Grunt.

  2. Under Entity Properties2, assign AITerritory1 as the territory and AIWave1...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image