Attach gun to hands
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?
asked Jul 04 '18 at 03:17 PM in VR
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.
Alternatively, rather than spawning the default MotionController, you can spawn one that is already set up with the gun. Hope this helps!
answered Jul 10 '18 at 08:55 PMEvan.Doody (suspended)
Follow this question
Once you sign in you will be able to subscribe for any updates here