I’ve got an enemy with an AI controller, Behavior Tree, and all that, and it works like a charm. When I have the enemy BP manually placed in the level, I can assign the patrol route (in the form of a spline bp) and it does what I’ve programmed it to do. The issue I’m running into is when I try to spawn that enemy after the game starts. I have tried creating an interface and attaching it to the level BP to pull a reference to the level object and pass it through to the enemy BP to assign the spline, as well as casting to the spline from the enemy, and nothing seems to do the trick. I’m hoping it’s something simple I’m missing here. Thanks in advance.
Figured it out. I had the enemy get all actors of class (the spline) and set the patrol route variable. Works like a charm now.
1 Like