x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 03:27 AM in Using UE4

avatar image

ue4-archive ♦♦ STAFF
50k 3667 1996 9121

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

alt text

attachto.png (352.4 kB)
more ▼

answered Mar 11 '14 at 03:27 AM

avatar image

ue4-archive ♦♦ STAFF
50k 3667 1996 9121

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:27 AM

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

gun1.png (574.1 kB)
gun2.png (453.5 kB)
avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:27 AM

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.

alt text

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. :)

gunvisibility.png (92.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question