Let's start!
Open up Unreal Engine 4, and let's start a new Third Person template project. We want this so that we can use the Third Person pawn as one of our AI-controlled pawns. So, select the settings as in the following screenshot and hit Create Project:
Next, we want to create our new AIController, and this will be responsible for telling our pawn to move between two points. The plan is to introduce some obstacles to see the effect we can have on the pathing of our AI. Perform the following steps:
Let's start by going into the Blueprint folder. Right-click to create a new AIController class and name it
SoldierAI
. This AIController will be responsible for navigating the pawn provided by the starter content.Remove the pawn from the level initially set up by Content Example. Then, we want to place two new ThirdPersonCharacter pawns in the level across from each other. Next, we want to open up this ThirdPersonCharacter blueprint and access its default values.
From here, let's find this pawn...