I used this video https://www.youtube.com/watch?v=b2atcZWYi3E to make an inventory system in my game and I made mulptiple objects including some keys that my character can pick up. I want to make it so that when the character picks up a certain number of keys (like 4 or so), they can approach the door and it will open. How do I make it so the door checks for the number of keys? Items are stackable so I can hold 4 keys at a time I just don’t know enough about blueprints to make it check the number of keys before opening the door.
Welcome to Unreal Forums!
Depending how you’re handling your interaction with the door, you would need to get your inventory component (inside your player character) → get the array that represents your inventory slots (items?), check if the item required by the door is in your inventory and if so check quantity is greater or equal to 4 (or whatever you need it to be). If yes, open door.
I don’t have an inventory that I could showcase right now with this, but if you are unable to get this working I could put something together, probably tomorrow.