Setting tag name from spawned item class

Hi,

I have an item inspect system but when I pick up items from the same class and then stop inspecting, it deletes all items of that class even the ones elsewhere in the world. I have now changed the node to be GetAllActorsOfClassWithTag instead of GetAllActorsOfClass and it works fine. My problem is that I’m not really sure why this works fine as it works when the Tag is blank. Does anyone know why this is the case and if this is left as is, could it cause any potential issues down the line?

heres what I have currently when you pick the item up

1 Like

When you pick it up, you get the actor reference ( on spawn ). Why not use that to destroy it afterwards?

2 Likes

As it turns out I actually had it plugged in already :expressionless:, so the part circled is useless. I hadn’t looked at that part of my project in a while but still don’t know how I missed that, thankyou.
here you can see that I did set it correctly on the right

hopefully this will show what I meant to do,

1 Like