Hi ! I created a socket called HandLeftSocket to my character and I want to move it to a specific location called “GraberLocation” by using SetActorLocation. I thought that substracting [Origin Vector] by [Destination Vector] would work, but not at all. Can you explain me how to do that ? Thanks !
I can tell you that it’s not working because the socket is not an actor. Even if it was, you need to specify which actor you want to move:
You’re currently moving the blueprint this code is in.
What I can’t tell you is how to actually do this, because I don’t use characters and sockets much! I suspect you need an animation of some sort?..
I’m pretty sure you cannot move sockets on characters once they are affixed to a bone no matter how logical your logic is lol. You can only modify the bone it’s on. I heard this a few times and was never able to accomplish it either so maybe someone has a different solution.
However, my workaround is to have different sockets and attach the components to those sockets when things need to be moved and or show/hide components already on those sockets to appear to show things moving.
It can be tedious because you have to use delays when you’re hiding objects already on those sockets to look correct in your implementation, but its completely doable. And if your setting the actors/components hidden in game and not just visibility they are not adding additional draw calls when they’re hidden.