Patrol Path Issue


Author: Cameron Euston


The Problem:

For this first week, I worked on the ai patrol behaviors. For the most part this went over smoothly. However there was a feature of this behavior that would allow different enemies patrol different paths. This was not working throughout the week until today. The issue was that there was no way to give enemies different patrol paths for each other.

The Solution:

I created a variable for each blueprint called "Path ID" that you would associate with each other. Then OnBeginPlay,  the enemy would search all of the patrol points and add only the ones with matching Path IDs to its patrol point array. This allowed there to be multiple enemies in a scene that can walk along the same or different paths.

Leave a comment

Log in with itch.io to leave a comment.