Book Image

CryEngine Game Development Blueprints

Book Image

CryEngine Game Development Blueprints

Overview of this book

Table of Contents (22 chapters)
CRYENGINE Game Development Blueprints
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Advancing complex AI sequences


One of the complicating factors of directed scripting-driven experiences are often the very complex and intricate AI sequence setups that are involved. These can be long and involve many different phases and branches, depending on how far through the level the AI accompanies the player. From the beginning of our level production, we've sought to make sure that the AI setup has been constructed with modularity in mind. Here is where we are able to take advantage of that.

To start with, we need a way for our debug skipping to communicate with our AI scripting. To do this, we can make an extra token representing the skip location that we've used. When we hook this up to our debug ProximityTrigger, this can be used to add extra gates and listeners to our AI scripting to massage the flow of events towards our intended level state at the point we've skipped to. In the following screenshot, you can see my example setup for this: one token can be used with a unique...