Rotate component in it's local space toward a point in world

I’m assuming you would use the same setup in CPP as BP, which would be ‘look at rotation’. But for this to work, your gun needs to point along the local X axis.