Download

Behavior Tree Task: Find Location of an Object

I currently have a task that finds the player’s location. This task is hooked up to a behavior tree which makes the ai run towards the player. I would like it to be able to find a static mesh instead. How would I get the location of the object?[SIZE=24px]
https://forums.unrealengine.com/core/image/gif;base64
​[/SIZE]2d6a505eed94f8d1c77932f3fb163471a856a35b.png
[SIZE=24px][SIZE=24px][SIZE=24px]5259c73cf36a364fc3c9deebb4b054343bcfc84d.png​[/SIZE][/SIZE][/SIZE]

Hi man
If you drop a static mesh inside the level , it will become a “staticmeshactor”
so you can use “get all actor of class” or “get all actor with tag” to have an array of them or an array of actors with specific tag.(you have to add a tag to the actor)
Than you can get the location from one of them choosing “get 0”

Thanks, it works!