Get the actor with the shortest rotation path

Hi. I’m trying to create a function that gives the character to multiple Locations / Actors and tell it which of them is the shortest rotation on the Z axis.

But I just can not get it, someone can help me?

…if I understand your objective properly, here’s something like how I’d approach it:

a. Get Actor Rotation of character/pawn (rotation)…
b. Get Actor Location of character/pawn (vector)…
c. Get Actor Location of other multiple actors (vector)…
d. Find Look At Rotation between char and other actors (rotation)…
e. Break out the Z float value of a) and d) and deduct one from the other …
f. Store the result in an array…
g. Use Min Of Float Array to identify the shortest rotation…

Works perfect, thank you very much.