# How do you attach a socket on one object to a socket on another object

**URL:** <https://forums.unrealengine.com/t/how-do-you-attach-a-socket-on-one-object-to-a-socket-on-another-object/403018>\
**Category:** Character & Animation\
**Tags:** attach-to-socket, weapon-system, unreal-engine, question\
**Created:** [August 27, 2017, 11:03pm UTC](https://forums.unrealengine.com/t/how-do-you-attach-a-socket-on-one-object-to-a-socket-on-another-object/403018 "2017-08-27T23:03:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crushforth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@crushforth](https://forums.unrealengine.com/u/crushforth)\
**Post date:** [August 27, 2017, 11:03pm UTC](https://forums.unrealengine.com/t/how-do-you-attach-a-socket-on-one-object-to-a-socket-on-another-object/403018/1 "2017-08-27T23:03:14Z")

</div>

I have a weapon that has a socket called ‘Grip’ and I’m attaching it to a hand with a socket called ‘Hand’. The origin of the gun isn’t where the grip/handle of the gun is. And the gun attaches o the hand in the middle of the gun. I can probably offset everything with SetLocalLocation but I was wondering if there was an elegant way to support multiple objects all having the same socket name. Preferably in c++.

In very new to Unreal Engine and am still trying to get the basics down.
