O'Reilly logo

Getting Started with UDK by John P. Doran

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 damaging the base

Now if you were to run the game, you would see enemies that would run up to the middle of the pedestal and then perform some sort of undefined behavior. That's partially because we haven't told them to do anything yet.

We want to make the AI (Artificial Intelligence) such that upon reaching our base he destroys himself, damaging our base. His death will decrement our base's health, and upon reaching 0, we will conclude the game is over.

Now, we finally get to use those trigger volumes we created in the first section.

  1. In Kismet, go back to the Player Spawned event we created previously, and in Properties, give it a Var Name of Player.
  2. Exit out of Kismet and go into the editor. Select the Trigger Volume in the middle section ...

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