I am trying to stop my line trace from picking up a item once the storage limit is reached. I got the display limit to work on my widget but even if the limit is reached (5) I can still pick up the same item and it gets destroyed. (It then doesnt get counted and cant be used)
I dont want it to destroy a item if the limit is reached and only be able to pick it up if the item count drops below 5. Any ideas?
Interact → cast to thirdpersoncharacter → get the value of firstaidpickup → branch (if firstaidpickup is less than 5) → (true-> set firstaidpickup+1 → destroy actor and return)
->false (return)
I have tried a few different ways that I found but none of them seem to be working. When the pickup limit hits 5 it still destroys the actor if I try to pick up a 6th. Does anyone have a visual aid? I might just be missing something simple but just cant figure out what it is.