So basically I snapped my weapon to my pawns hand. Now I want to get the location of the weapons muzzle to spawn my effects and add my linetrace. Because its snapped now I get this Error:
LogSkinnedMeshComp: Warning: GetSocketByName(): No SkeletalMesh for Component() Actor()
Im using the Standard SK_Rifle. It has the a Muzzle socket Im trying to get the location of it by doing this:
(Tick)
FVector LocationSock = MeshComp1->GetSocketLocation(“MuzzleFlashSocket”);
It gives me the location one frame and it sets its self to zero the next.
Does anybody know a solution for this? I snapped it to my pawn by using the “AttachToComponent”.
Thank you