[Vive] creating melee weapons that snap to the players hand with a trigger click?

Hello! I am pretty new to the programming side of game development, I can model, animate, texture, and create solid looking maps, but I have never really gotten into the programming side of things.

Anyways I’m wondering if someone could guide me in the right direction on how to go about creating a melee weapon that a player can reach, click the trigger, and have the weapon snap to a fixed position in their hand until the trigger is clicked again to release the weapon.

Im a total noob when it comes to programming and I would appreciate as much guidance as I can get…

Thanks a bunch.

Case

this may help
https://docs.unrealengine.com/latest/INT/Engine/Content/Types/SkeletalMeshes/Sockets/
this shows how to create sockets but you may want to attach them dynamically (or you could attach in editor then set the visibility of the mesh dynamically) to do that you need attch the weapon/object mesh to the skeletal mesh socket name.
https://answers.unrealengine.com/questions/6696/attach-static-mesh-to-socket.html

also look at the VR template for how to get the input from the trigger press to attach

hope this helps
good luck