Setting up patrol points
Let's start by creating the path we want the AI to patrol. While you're still in the Level Editor, look at the Modes panel. With the Place tab selected, click on All Classes and drag a Target Point object onto the area of the map that you would like for the enemy to start the patrol from. Now, look at the World Outliner panel and click on the folder icon with a plus symbol that sits to the right of the search bar. Click on this to create a new folder called PatrolPoints. This folder will contain all of the points we create so that we can keep the main list tidy. Drag the Target Point object in the outliner into this new folder and rename the object as PatrolPoint1.
Now, go to the Details panel of PatrolPoint1 and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access