I am trying to set up a simple inventory where upon picking up an item, it is stored until it’s relevant again. I was told I could use a bool to say “HasItem” to activate it, but I’m very lost honestly. I’m trying to use a line trace to pick up the item and destroy it while putting it into an inventory of sorts. Have I done something wrong?
Hey @Wulf_Man how are you?
I’m not sure if I understand you clearly as I’m missing context, but what you are doing in that screenshot is destroying the BP_TankControlsCharacter (which I suppose is your Player character) not storing something in an inventory.
For a simple inventory system I recomend you this tutorial , which explains in the first few minutes how to pick up items with line trace and destroy it after it.
In addition, if you want to create a more complex and versatile inventory system, this is a great playlist with a lot of detail! And this is a video with a simpler way to do a quick inventory.
For what you need right now, I’d start with the first video I shared and then think about the other more extense tutorials!
Hope this helps you!
