You only ever want to spawn each weapon one time and create a reference to each of those weapons . Then for weapon switching you simply hide one mesh and show the other .
So for example . You want pistol and shotgun . So first go into character and on the hand bone . Make two sockets that will be the spawn position of the different guns . Use a preview asset to position them accordingly and line them up .
Next in you’re character make a function called spawn weapons .
Spawn each weapon and set its position to be the newly created socket positions . Drag off from the spawn node and set these in a variable which will be a reference to that particular gun . This is useful because you can use it over and over again whenever you want to do something with that gun .
Then make an enum . Shotgun , pistol
Switch on enum when you press 2 hide pistol mesh , show shotgun mesh , when you press 1 hide shotgun mesh show pistol mesh