Attatch Component to Skeletal Mesh Socket?

anonymous_user_2bd0f2d7
Sun, 15 Sep 2019 16:38:32 +0000
C++

Hello,
I’m trying to attach a gun to a socket placed on the skeletal mesh.

Here in preview mode, its in the right location:

In game, it is spawning at the root of the player and not moving:

FName fngrippoint = TEXT("GripPoint");
    	GunComp->AttachToComponent(GetMesh(), FAttachmentTransformRules::SnapToTargetNotIncludingScale, fngrippoint);

Here is the code to attach it, if anyone could help that would be great!

Thanks!

2 posts - 1 participant