Opening a door after 5 orbs are gathered

Hello,

So as you will see below, I have made some BPs to gather orbs and then, once I have 5 of them, to be able to open the door and only then. Or so I thought. The issue is that I still open it even without the 5 of them. what would be the problem on my logic? Just wanted to let you know taht I am using interfaces.

Hello,

Last screenshot, you check is orb count is greater or equal to 5, when it’s NOT, you open the door. Either change >= to < or swap over true and false on branch.

@DonBusso

Like that?

Yes, exactly like that. Does it work? :slight_smile:

@DonBusso nope, this time it only shows the print string without opening te door

So it does work, the door will remain closed until you have collected 5 or more orbs.

@DonBusso that part works, but won’t open even with 5 orbs. It just prints the string not possible from false branch

What value does your Get Orb Count function return?

Finally found the solution, the issue was that I was calling a GetOrbCount message from BPI, while I should have one called from the cast node, get orb count and it worked.

1 Like