Attach weapon socket

Hello,
I am trying to attach a gun skeletal mesh to the first person character’s arms sockets. There are exactly 2 sockets on the gun and the goal is so the weapon only attaches at a trigger. Any info would be great!

  • Sohile

You can use this graph to attach your gun to a socket in your first person arms.

Thank you for answering Satheesh,

I still have some questions that I hope you could help me with.

The goal is to make it so that when the character walks into a certain area and presses “E” the gun is then visible in the first person. BEFORE the character does this the gun should not be visible

INFO RELATING TO PICS BELOW:

gun1 - I have created a socket named left that is attached to the bone LeftArm. I have attached the gun mesh to that socket. Is this correct?

gun2 - The current state of my character components blueprint. Again, I would like the gun to TOGGLE VISIBLE after the character presses “E” in a certain trigger volume.

Thank you for your time,

  • Sohile

Hi there Sohile,

In your gun1 image, even if you add it the gun wont appear in game because its there for previewing only. If you want the gun to be initially hidden and then make it visible upon key press then make a graph like this.

What this does is, when you press play it will hide the Gun mesh. Take a look at the NewHidden checkbox. When you press E the NewHidden value is unchecked which makes the gun visible in-game. :slight_smile: