Character auto rotation, rotate to face player on notify

Hi there,

I have a simple piece of functionality to set up but am not adept at blueprints so any help would be greatly appreciated:

I have a character set up to constantly rotate in blueprints using a yaw per second float variable multiplied by delta time. On receiving a notify from another script the character should stop rotating and lerp to zero degrees in yaw, choosing either clockwise or anti-clockwise rotation depending on which is closest.

For now it would be enough to have this just trigger on a key press and resume again on another key press. If anybody could help me out I would be very grateful.

many thanks,
H

Rinterp or lerpRotator node should have a checkbox to use shortest path. In either case use a lookAt node to get target (B) rotation. And break out the pitch and roll floats to only use yaw.

thanks for your response I will try this.