Attempting to make an inventory system for my player...

Create and add a blueprint interface to your item class (e.g. iPickup). Then just check if the linetrace hit an actor that implements iPickup. If so add it to your inventory.

Uhh, ok… How do I do that?