How to attach animation to skeleton socket during attack anim only

Hi I’m currently learning to use Unreal to make an Inspector Gadget game.

one of the things I need to be able to do is attach items that come out of his hat for specific situations, the one I’m starting with is his gadget-mallet for melee attacks. I’ve animated the character and mallet as seperate items and need to attach the mallet to the stance during attack 1,2,3,4. what would be the best way to go about doing that please? the mallet and Gadget can be seen in the screenshot below. at the moment the attack anim plays but I need to attach the mallet anim/skeleton to gadget during the attack anim.

Also since I added the combo attack system, when I press play the character does the 1st attack automatically without my pressing the button. would anyone know what the fix is please?

any help would be appreciated

  1. Create a socket in the Skeleton inside Unreal (lets say in his palm or wherever).
  2. Call it the prop socket
  3. Now when he pulls his hat, spawn the gallet and attach it to the prop socket you created. NOTE: You will have to attach this prop to the mesh of the character in order to access the bones/sockets.
  4. Play the gallet animation, it will now play the animation with relative to the prop socket.

To play around: Create a test socket in the skeleton, attach a cube to the mesh in the viewport, on the right hand side see the socket box and click on it and see if you can find the new socket that you created. That would be the way to go.

I managed to do it with a visibility command in the blueprint for the contol, to turn visibility on/off as each combo move played and managed to do the scaling with Blender after all.