Waypoints
Similar to the AI Sense project, these waypoints will have a reference to the next waypoint. This simple link between two waypoints allows us to create paths for our AI to navigate to.
Now, we should move on making these waypoints; perform the following steps:
To begin, let's right-click in the space inside the Folder section and go to Blueprint. At the bottom, search in All Classes for TargetPoint. Select it and then hit Select to create it. Then, name it
Waypoint
and open this in EventGraph.On the left-hand side under My Blueprint, add a variable waypoint named
NextWaypoint
. We will use this to find the next waypoint to transverse to.Add four waypoints to the level and link them together using the NextWaypoint variable. The connection should look similar to A->B->C->D->. D should then connect to A, thus creating a loop.