Download

AIController SetControlRotation not work

I want to use SetControlRotation to rotate ai pawn toward user but it not work. I can rotate pawn through SetActorRotation, but it not fit for pitch, which should be the same after changing pitch of aicontroller

please help

You shouldn’t directly set the rotation of the AIController. However if that’s what you want, go to the ai controller, and uncheck “Set Control Rotation from Pawn Orientation”.

it works, but strange. i set ControlRotation in Task, after that pitch became 0 when i try get it from animation blueprint(from getControlRotation). now i can set it exactly from ABP but appears not good decision

nobody knows how to set pitch?