Download

Can change the location of Sockets at runtime?

I need to change the position of some sockets during gameplay to adjust to some changes in the mesh but I haven’t seen any function that does that.
Is there no way to achieve this even if it is through code?

Thanks in advance. :slight_smile:

In case you don’t find another method you could think of the socket as the initial location, then just have another vector that keeps track of the offset from that socket. Your final calculation would be SetWorldLocation = GetSocketLocation + OffsetVector.

The main problem is that I want to change an already-created socket to extend the length of an animation trail (because the weapon is longer or shorter) but during that animation I don’t have access to the sockets in the weapon itself (because it’s a separated mesh). So the only solution would be to change the position of the socket itself, but I can’t seem to find one, even through code.