How do I get my sliding door to open all the way before it shuts?

Hello

I need some help with a sliding door blueprint…

I wan’t to prevent the player from stepping in and out of the triggerbox, so it don’t trigger the reverse the animation in middle of the open/close animation…

So when the player is overlapping the trigger in my door blueprint, I want my door to complete the slide animation and then close like 2 seconds after the player leaves the trigger box…

Here is a small video demonstrating the problem:

Here is my blueprint

You can use a Delay node set to 2 after end overlap event.

Thanks for the reply…

Yeah that was my first thought to, but as you can see in the video below it’s not working perfectly…

I can still double trigger the begin overlap and I don’t wan’t a delay when I open the door…

Then you’ll need to setup a boolean network that will tell you if the door is currently open or not, and then use that bool variable for a Branch right after begin overlap event.

Could you provide a sample?

I’m all new with blueprints, so I got this now:

Don’t really know what I’m doing, but I tried to see if I could make it myself… But it didn’t work…

I couldnt think of a simpler way right now but this should work;

If you need explanation of how this works; when a bool variable is ticked, it is enabled; when it’s empty, it’s false. So when you begin overlap you set it to false(after Branch so that it doesnt stop you yet), then you set it to true only after it makes sure that Timeline is finished(thats why you need a second delay) and the door is closed.

Thanks for the sample…

But something is wrong, if I make it like your sample I only get a much delayed closing sound and no animations…

If I check the “Set door” after BeginOverlap and uncheck the other after delay like this:

Then I get the animations and sounds again, but the door is still not working correctly:

Oh, my mistake. I said the right thing but did the wrong thing. You need to set the first bool after the Branch. And make sure the tick boxes are the same as mine.