Download

[AI/BT] Can't make the AI rotate to face the target

Hi all,
I’m in the process of learning Behavior Trees. I implemented the official AI Behavior Trees quickstart guide, and it worked fine. Now I’m experimenting with it, trying to make the AI rotate to face the target at all times. I figured a Rotate to face BB entry task would suffice, but the AI doesn’t feel like rotating today, so lazy…
By the way, I’m using the TopDown Character as the player character (could it be the cause of the rotation problem? I can’t find the culprit setting).
Hope someone can help.

Here is the BT (the player is in range of the AI):

screenshot_05.png

Seems like all I was missing was: ‘Use Controller Rotation Yaw’ set to enabled in the AI’s pawn settings.