Attaching a static mesh to the second skeletal mesh on the player
Hello there, okay so im getting way out of my depth here but the best way to learn is throw yourself in at the deep end right? Okay to the problem.. i have a weapon static mesh. (JNG90) and i have a system in place to attach it to the socket on the third person mesh. Im trying to have this game so that when you hold the RMB, it switches to first person. Ive done this by adding the skeletal mesh from the FPS template of UE4 to the third person project im working in. Ive then managed to get that into the character BP and simply added a toggle visibility on the two meshes when RMB is pressed and released. Besides the point. I have a socket on the third person and a socket on the 1st. When i try to attach the weapon to the socket on the second FPS skeletal mesh, it adds itself instead to the floor of the third person, not in a socket just like, on the floor at what i guess is 0,0,0.
Any ideas how i can specify which mesh to attach it too? Hopefully the images help explain my point.
asked Feb 27 '15 at 03:23 AM in Blueprint Scripting
You can use Attach Actor To Component blueprint node.
In your graph of your blueprint, simply use that, with the target being your weapon, and the component being your selected Mesh.
You will also have to specify yur socket name and how to attach it to the component, in your case, I'm guessing it would be to Snap to Target.
answered Feb 27 '15 at 01:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here