Open the BP_StorageInventoryComponent then create a new function called WeaponItemWeight, add an input called Item and set its type to S_ItemInventory then add an output called Weight set to Float. Then copy the image below.

Move the highlighted nodes to the location shown in the image below, location at the top of the screenshots.

Next add the highlighted nodes in the image below.

