Hi there. I’m actively developing a horror game and have already set up an inspection system for it. Now, I’m planning to implement a basic inventory system, but I have a question: I want the item to be added to the inventory only after the player has inspected it. How can I do this?
Are the items collected from a widget (like a grid or list showing all the items in a chest or whatevs) Or just picked up off the ground?
Either way, you could just add a bool var (to widget or pickup actor) called HasBeenInspected or some such, make its default value false, and get that on interact and branch it. If false continue on with your inspect logic and set it to true. Then when player interacts again, use the true branch on the HasBeenInspected bool check to add it to inventory.
To avoid forcing player to reinspect every first aid kit they ever see, you could also check if player already has the item inventory and use that as a bool, then or that use that with an “or” node on that branch checking if it’s inspected.
That, or if your inspection system pops up a widget to show the description and such, just put an add to inventory button there.