Hello Devs, I have an inventory system that so far works perfectly. I am able to pick items up, have the actor destroyed and have it added to my inventory with the icon adding to the inventory ui. My issue is I have four slots displayed for my inventory and I would like some help implementing like a counter of some sort that basically prevents the actor from being destroyed and picking up an item if it goes over the four slots. Currently I am able to pick up an unlimited amount of items even if all of the slots are filled. Here are screenshots of all of the main blueprints that are in use.
Main Char Bp
Add Item Function
Add New Item Function
Find Item Function
Event Graph for the three functions above
Destroy Actor Bp for items