O'Reilly logo

Build a Game with UDK by Geoffrey Sholler

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

Enemies

Enemies

Now that we've made our area navigable by AI, let's pop a few enemies into our level and see how they do. We'll go through a few examples of basic AI commands using Kismet and we'll work our way up to somewhat more complex survival mode.

Spawning enemies

The first step to having some good enemy behavior in our game is to get the enemies out there on the field. There are primarily two ways to handle this. We can either perform one of the following:

  • Spawn the enemies dynamically using Kismet
  • We can make an Archetype and place instances of it in our level where we want our enemies to be

Both approaches have their own merits depending on what sort ...

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