How do I make time activated gates?

1.Go to your level blueprint

2.drag and drop your gate there (if it’s a mesh)

3.add a TASK WAIT DELAY function

4.Set the time (in seconds) whatever you want

5.Set location whatever you want

6.Connect everything together

What our function does: When your press the INPUT, the DELAY function activates, so it waites for 5 SECONDS, and then activates the TELEPORT function and Changes the door’s location (OUR DOOR IS THE CUBE)

This is our function in the VIEWPORT:

BEFORE FUNCTION: (gate is closed before you press button)

AFTER FUNCTION: (gate opens after five seconds)

So in this function, You Press the INPUT, wait for five second, and gate opens.