How do I close the door after opening it?

Hi!
I already have a timeline setup for opening the door. I also have my own function for interaction, telling the engine if it’s a door, a chest, drawers etc with InteractBase as the parent and the interactables like doors, drawers as the child for example.

I took this technique from a teacher in a course I paid for but sadly he abandoned it I think and left it unfinished.

With how I have it set up, I’m really not sure how to make it both possible to open and close the door multiple times instead of just opening it once and that’s it.

I did think of using Flip Flops but not sure where exactly to use them in here.

What I want to achieve is basically opening the door upon the interact button, then closing it again, and you can keep repeating this process to the door, without it looking too spammy.

I’ll post an attachment down below of my Event Graph for my interact Door actor, thanks!

To get it basically working, yes, just put a flipflop right after the event, and connect one ping to play, and the other to reverse.

If you want to not be able to spam the door, then you need something like:

1 Like

You’re welcome :smiley:

Works wonders, thank you so much man!