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?
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?