Download

Behavior tree - help to create an sequence for moving to a specific object in the level

Hello everyone, I am approaching now unreal engine to work on an architectural project.
I am struggling to compose a behavior tree able to control a simple NPC to walk around the place. The problem is this, I want to set up a sequence able to order the NPC to return to a certain point of the level, like a “return to base” action. I planned to place a specific actor in the level to act as a goal ( not the player ), and then create a specific task in the sequence able to extract the current location of the goal, and store it inside a vector variable to be used later with a “move to” task. Problem is, that I cannot grasp how to generate a task able to acquire the location of an actor in the level, may someone help me in this?

Thank you very much !