How to Attach 2 sockets of one mesh to two separate sockets of another mesh?

Heya,

So I have a rifle mesh with two sockets (one in the handle and one further down the barrel). I’ve managed to attach the one in the handle to my character’s right hand but i want to know if there’s a way to attach the barrel socket to my character’s left hand without disrupting the other socket.

The reason for this is because whenever I aim my rifle with Ironsight and look up slightly the left hand moves to the left a little and breaks the immersion of holding a gun. I figured the best way to fix this would be to bind that hand to the barrel socket, that was the barrel would stay in the hand and the handle would stay in the right hand but so far i’ve found no way to do this. Please help as I’m really baffled with this one.

Many thanks!

You want to use IK in your animBP to move your left hand to your Barrel Socket each anim update.

Thank you! Any idea how I would start this?

That’s a rough one to explain at an real length here. Look up some tutorials on IK in UE4. As a rough overview this happens in the Animation Blueprint. You’ll have an IK node that gets updated each anim update the solves how to move the arm to the location of the socket.