How to prevent grabbing items from a closed inventory?

Hi! I have what seems like a very simple issue but I can’t figure this one out. I have a Backpack_BP that has loot items attach to it when I physically put them in and let go (via attach actor to component). My bag has closed and open states that are referenced via a bool variable (Bag Closed) so whenever player isn’t actively holding it, it’s closed. My issue is I’m still able to pick up the loot items from the bag while it’s in the closed state. How can I prevent this easily?

This is done in VR and I’m physically removing and placing the items inside the backpack.

I don’t see the problem here. Is it possible to check if the bag is opened before picking up the item?

1 Like

Your interaction needs to check the closed state before doing anything.

I ended up figuring it out. I added a couple of interfaces, one of which referenced the backpack and another to check if Item is attached. Made a function to check if bag is closed and if item is attached, then ran it through a branch which checked those two states.