Door works one time - Variable not working?

Hi,

I tried to search all over the internet and in here but I didn’t find solution for my problem.

I have made simple door with this tutorial - YouTube but it only works one time, on blueprint I can see it works well but on the 3th key press it will do same action as the door would be open, but it is closed, so it’s trying to close a closed door :slight_smile:

Press F - Door opens
Press F - Door closes
Press F - Nothing happens, blueprint tries to execute “close door” action.

So variable only sets from True to False and then stays False…

Hope you understand what I mean, thanks for the help.

Regards,

Your local noob

Can you show your blueprint?

I think the bool that changes from open to close isn’t getting set to say the door is closed after you open and shut it.

Here’s the blueprint, exactly same as in that video… I also tried to take those two SET’s off and add just one SET after Timeline’s update, but it works exactly like before.

Set the bottom Doorstatus to true (click the checkbox on it)

Default Value - Door status [X] - it is checked :slight_smile:

Oh, that one, I checked the box in Variables Detail panel, but I also tried those ones you mentioned, but I checked both of them, not just bottom one… so now I checked the bottom one and it works - Thanks m8 for fast answers :slight_smile:

Problem solved - Staff can mark this as resolved.

Hehe, ok, I try to do that.

Not in that picture you sent. I’m not talking about the default value either. I’m talking about the Set node coming from that False branch exec. That needs to be checked

Or are you saying that you checked it just now?

No problem! And you have to accept the answer yourself