How to Rotate Object While Dragging Another Object?

I’m trying to make an object rotate when I drag a separate object in Unreal Engine. Can somene Suggest the best Blueprint approach to achieve this?

What is the resulting effect supposed to look like? Is the secondary object looking at the one being dragged? Or is the rotation based on the raw distance the other object is being dragged?

In any case, you could use the tick event on the turning actor, set the moving one as a variable, and get its location to do the math to set rotation. Probably with a branch near start of event to check a bool for whether the target is being moved so it doesn’t do math when the target stops..

For example, I made a turret set thirdpersoncharacter as a var on begin play, then rotate towards player on tick like so:

The moving bool in character is set to true when a movement key is pressed and false when the input action is finished. Teh FaceTarget function is pretty basic: