I have a boolean that is supposed to open and close a door when clicked, but while the door opens as intended, clicking again does not make it close. This is my graph for the button that is connected to the door.
Hello,
It looks like you forgot to connect your bool value to the branch, so you always take the True path of execution.
1 Like
I am an idiot. I had the boolean values the whole time but disconnected them thinking they were unnecessary since they didn’t work on the door. It turns out that I just needed to use them to set the door condition in the button, whereas I previously set everything up in the door itself which did not work. Such a simple thing, thanks.
1 Like
honestly it happened to all of us at some point so don’t worry about it. You can’t learn anything if you don’t make mistakes at all. I’m sure you will now remember to always plug your branch condition. ![]()
Have a great day!
1 Like
