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

Of course I included “#include “Components/SceneComponent.h””.
What is wrong ?
Thanks,
VinsV
Hello all !
I’m trying to use “GetSocketLocation()” for spawn my projectile where the socket is. But this function is not recognize in c++ :

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 ! 