Hi all,
I am encountering a weird issue with my "pickUp item" function. Basically all my items are in a family called "items" and this family has an instance variable which is a boolean called "stackable". If the item has stackable set to true, then I want it to go down a specific path in my function so it may stack with any of the same items that are already present in the players inventory. If this boolean is false, I want it to go down a different path in the function and take up a slot of its own.
So how I've done it is when the function is called the first thing it does is evaluate this boolean and based on this it should send the item down one path or the other...but this isn't happening.
No matter what the boolean is set to, the item goes down both paths. It seems that the function is ignoring this check entirely.
Here is a screenshot of how the function is set up.
I have no idea why it would be ignoring this boolean check. Any suggestions of things to try? I've been trying to figure this out for a while and really need it to work.
Thanks in advance for your help!