Creating a simple enemy Bot
In this recipe we'll introduce some AI handling concerns. We're setting up for future lessons where Bots will be used frequently. In this lesson, we'll just set up the Bot and make him fire at the player.
Getting ready
Open Packt_04_BotHandling_Start.UDK. Click in the View menu and choose World Properties; there set the Game Type for PIE to UTGame. This gives us a heads-up display in which we can see, amongst other things, the health changes this recipe involves.
How to do it...
- Open the Kismet Editor by pressing the icon [ ]. Hold P and click to add a Player Variable. Highlight this variable and in its properties turn off the tick box called Seq Var Player | All Players. This means the variable is specific to a single player. Every player can be given an Index to ID them. The default is 0.
Right-click and choose New Event | Player | Player Spawned. In the properties for this event look for Max Trigger Count and replace the default value of 1 with 0. This means...