In this chapter, waypoints represent the points that bots navigate to. We will make additional changes to our waypoints to limit who can traverse these points. This will be established by creating an array of actors on individual waypoints. When the pawns go to access the list of available waypoints, they will only add the waypoints they're allowed to. Here are the steps to perform for this:
Start in the same Blueprint folder as before. Right-click on it and create a new blueprint. Go to Custom Classes and select the Target Point actor. We will use this for the sprite it provides.
Name this new Target Point subclass
Waypoint
and hit Okay.Open our new
Waypoint
custom blueprint and create a new public ThirdPersonCharacter pawn array variable calledAllowed Access
. Then, select Editable so that we can modify this value directly from Unreal Editor:Now, place some waypoints in the world, and we want to try to make this random. This will allow our pawn's path to be more controlled when...