Drop the sword, and replace if I want to pick up other weapons

I’d like to do something in my game, If I don’t have any weapon, pick up the sword. But if I have other weapon like a hammer and I want to pick a sword up, drop the hammer from my hand and replace the sword.

I’m new to unreal engine so I don’t really know how to do this. I looked for solutions, but I couldn’t find the right one.

Thanks in advance for the help.

The sword on the map:

Master Weapon Actor Blueprint:

ThirdPersonCharacter Blueprint E Key Call Picking Up Weapon:

Server Set Weapon And Destroy Actor When It Picked up:

RepNotify Inside:

Hi

I’m not sure how to alter what you’ve got set up already, but as you said you’re looking for solutions… I started mine off the below tutorial which has your basic pick up and switch weapon, hope you find this useful if you don’t get a solution to what you have already: