I’m using behavior trees to make AI guards, that will chase and search for you. I have them able to patrol along a path and return to this path once they lose sight of you. However I don’t know how to make them start at a static location and rotation and return to this once they have lost sight. Any ideas? Thanks!
Hi, you could add the location and rotation variables you want to the blackboard. And you would need to set them (you could do it for example in the “EventBeginPlay” of the AI controller and use the location and rotation of its controlled pawn).
Then you can just use “MoveTo” with the location variable from the blackboard to let the AI return to that location and then let the AI rotate to the rotation variable.