Attach actor to actor using tags and with different trigger events.

I have different types of weapons that have tags associated with them. I want to equip/unequip the weapons by pressing different number of the keyboard. I know how to do this but I am repeating a lot of logic by workinng with individual values instead of using arrays/maps.

Below is a screenshot of how it looks now. Key number 1 is used to send the weapon type “sword” from the hand socket to the “sword” socket in the belt of the character.

The logic fo key number 2 is not finished but it would be the same that key 1 only that we would change the type of weapon being checked and the socket name.

I will have up to 6 keys that will need similar logic: sword, axe, seax, spear, shield, bow.

I was trying to use maps to link tags with socket names, but I still have some trouble, how do I separate the type of weapon checked by tag (i.e. how to have key number 1 only work on swords, key number 2 only on axes, etc.), and how to find the socket name being used by an actor blueprint (the weapon blueprint).