How to get a socket's position relative to it's parent component?

Hello!

With the blueprint it does seem to return the right transform, at least its not (0,0,0), even when setting it to RTS Component.

But with code, it doesn’t. Why would this be?

EDIT: I tested the code in the BeginPlay() fuction, and it works!
I might have forgotten to mention this was in the constructor of the pawn.

Does this really not work in the constructor? I would think after setting up the skeleton, it would know the relative position from the component’s pivot point, but I just started using UE4 like, 4 months ago, I might not know everything :wink: