How I made this happen is first add a script to the MAIN_HAND Node (Panel) and paste this :
https://pastebin.com/nimDxKWp
then go to the Equipment Slots script then add this under the "insert_item(item)" function above the "return true" line
if item_slot == "MAIN_HAND":
$"%MAIN_HAND".add_item_to_array(item)
to delete the node when not equipped
first add some sort of a way to get your Player and your Player's hand (where you instance your weapons)
then add this under the "grab_item(pos)" function ↓
if item_slot == "MAIN_HAND":
(the Player's hand node).get_child(0).queue_free()
(Why I can't make a tutorial is that I don't have time right now)
Original :
• How to make a Diablo style inventory syste...