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 gun to hands

Hi,

I am trying to attach a weapon blueprint to a socket in my motion controller hand. I've tried the pickup interface but it only works if my mesh is my root component. How can I keep a scene as a root component in my weapon blueprint but still be able to attach it to my hand socket?

Product Version: UE 4.19
Tags:
more ▼

asked Jul 04 '18 at 03:17 PM in VR

avatar image

Alexei_A
1 1 1

avatar image mightyenigma Jul 05 '18 at 04:22 PM

maybe you can attach it after the pickup interface runs, to the socket you want.

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

1 answer: sort voted first

The easiest method I have found through blueprints is to spawn and attach the weapon the same way hands are spawned and attached to the MotionControllerPawn. By default, the Pawn doesn't have hands, they are spawned under his BeginPlay event. You can add an event to the the Pawns BeginPlay event that will call an event in each hand to Spawn and attach your gun to each hand.

alt text alt text

Alternatively, rather than spawning the default MotionController, you can spawn one that is already set up with the gun. Hope this helps!

1-spawngun.jpg (559.7 kB)
2-spawngun.jpg (264.9 kB)
more ▼

answered Jul 10 '18 at 08:55 PM

Evan.Doody (suspended)
(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