Creating navigation behavior
The first goal for our enemy will be to get it to navigate between points we create on the map. To accomplish this, we'll need to create points on the map that the enemy will be navigating to, and then we need to set up the behavior that will cause the enemy to move to each of the points in a cycle.
Setting up patrol points
Let's start by creating the path we want the AI to patrol. While still being 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. 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 ...
Get Blueprints Visual Scripting for Unreal Engine now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.