I am doing something similar and am also trying to set up the AI to be able to see and hear the player and then move to and attack. So far I have the AI moving to a random Target Point until it sees the player but it does not attack and I can’t figure out how to get it to hear the player, even though I have all that set up. With all that said, I hope that this will help you out some, I am using the AI character, AI controller (that I set up not the parent AI controller), behavior tree, and BTTasks.
The vairable GuardTarget is of type actor. You don’t need the other ones just yet.
Not sure if you have to do this in the controller but I was trying to get other things working with the behavior tree and there is more in my AI Controller that is not pictured. I suggest trying it without this one first and then add this if it doesn’t work after you do all the others.
You mainly want to focus on the Idle branch of this tree for what you are asking for.
This is the decorator for the first selector. This one tells the AI how far it is from the Target Points and the player. The tutorial that I followed on this was for the AI to stand guard and come at the player and chase him only a certain distance from his guard position.
This is the one you really want. This tells the AI to wander from each point. I am using the Target Point as the actor for the AI to go to in the game. This should make him pick a random point to go to. If you want him to follow a predetermined path then take out the Random Integer. Also, the variable WanderPointKey is of type Blackboard Key Selector.
Just so you know, I am not the greatest at programming so there may be much better ways to do this. I have pieced this together from several tutorials and just plugging away at it. That is how I hope to get the rest working also lol. Hope this helps, I know there is not much out there that is very clear to get people started with this new engine but a lot of it is just learning what you can and then testing out everything you can think of, you will break it most of the time but the reward is great when you figure it out.