How to use GetSocketLocation() ?

Hello all !

I’m trying to use “GetSocketLocation()” for spawn my projectile where the socket is. But this function is not recognize in c++ :

2015-01-27 14_32_47-Survival6 - Microsoft Visual Studio (Administrateur).png

Of course I included “#include “Components/SceneComponent.h””.

What is wrong ?

Thanks,

VinsV

you have to call this function on the Actual skeletalMeshComponent, not the actor.

Ok, Can I get the Actual SkeletalMeshComponent in my Character.cpp ?

Yes you can use ```

USkeletalMeshComponent* ACharacter::GetMesh();

And from there you can get the Socket you need on the mesh.

Thank you for explanation ! :slight_smile: