Hi all,
I’m trying to learn AI/BT. I implemented the [official AI Behavior Trees quickstart guide][1], and it worked fine. Now I’m trying to modify it to make the AI only rotate to face the target, without moving, but the AI isn’t rotating. I figured a “Rotate to face BB entry” task would suffice. This is the BT:
I suspect it might have to do with the character (it’s a standard topdown character), but I can’t figure out what it is.
I think it could be a bug, I just noticed this suspect behavior.
In ‘Rotate to face BB entry’ details panel, I cannot select any actor but SelfActor (the first one added to the BlackBoard), but I can select all Locations, even newly created ones.
PS: the AI still does not turn if I use TargetLocation.
Nevermind, it had to do with the fact that I had not specified any Base Class in the BlackBoard entries. Still the AI does not turn to face neither TargetActor nor TargetLocation, and the task seems to keep trying forever to execute the rotation.
Seems like all I was missing was: ‘Use Controller Rotation Yaw’ set to enabled in the AI’s pawn settings.
Thanks for this, I didn’t even know there was a rotate to face BB entry command, I was trying to write my own decorators or services and comparing forward vectors with great frustration. Thank you