Ooops!
Sorry, I was reading some BP related stuff and that came out wrong. What I meant by BP is ‘Class’ in C++.
So If i understand correctly, your Pawn has a Gun as its component. right. My question is is it a Child Actor Component OR simply a Skeletal Mesh?
If its the later, you might be doing the firing logic within your Pawn class. In this case, you have full access to the Gun Mesh Component and can easily get the socket location.
On the other hand, if your Gun is attached as a child actor component and the firing logic is within the Gun class, you can still get the socket location, because the Gun’s mesh is one of its components.
Your question: "how to I get the socket from a mesh component of another mesh? ".
I am not sure I understand that.
Did you mean: "how to I get the socket from a mesh component of another actor? ".