I don't understand why I can't set the rotation of an AI

When my character fires at the player I want to rotate them to face the player. Simple enough.

But nothing works, setting the actor rotation doesn’t work, and neither does setting the control rotation. the node is definitely being hit and nothing anywhere else is even touching rotation. Any help would be much appreciated.

24644-capture.png

Hey (:

Controller rotation won’t turn the character as far as i know. You are only turning the controller. For example if you turn him 90° clockwise, your forward action will move him sideways. At least that’s what i learned when creating my Legend of Zelda movement.

If you want the actual character to turn, you need to set it’s World Rotation.
Could you show me how you setup the Rotation change? Can you also check that your “New Rotation” isn’t your old one due to a calculation error?

If you post a picture of your blueprints, please include more than just 1 1/2 node x) I can’t see anything on this screen.

1 Like

In case of AI control rotation is being calculated on the fly based on path following, its setup, and desired focus. Try using SetFocus and SetFocalPoint.

Cheers,

–mieszko

4 Likes

that did the trick! thanks once more for the info Mieszko.

Someone should mark this as the answer. It’s been a while hehe. (Hey Mieszko! Can you get back on the stream with something fun?)

That’s worked!
Thank you.