My question is simple I have an AI bot that is able to move to and follow MyCharacter which is using the first person template, I want to be able to look at the bot and on a button press select the bot and get it to move to a new location on another button press while using the behaviour tree system if possible.
Well you can do a line trace after some event (like a key press). The result will be a hit result which you can break to get the bot as actor. Cast it to your bot class to check if it’s one of those and if it is set this class as selected (just put it in some variable). Then when you press that button (or some other button) again (you can do that by adding a branch and checking if your variable is empty… don’t forget to clear this variable again after you told the bot where to go if you chose this method) do again a trace and this time take the hit location (no the impact location but the location) and use that to set a value in your blackboard. Inside of your bot check if that value is set to something besides your current location and if it is move there.
@Erasio I have managed to cast to the bot from the hit result and print a string which says “selected” but I am unsure on how to do the rest as I’m not very skilled with blueprints could you show some screenshot of what you mean in the hope it may sink in because I’m getting confused thank you