How do I make time activated gates?

I need it to work as a cooldown. I’m a noob so please be descriptive.

What the… hehe. I thought we were talking about actual gates moving up and down after a certain time.

Anyway, just use a timer AFTER you change something and then set it back to whatever you want. This would be way faster.

http://puu.sh/oByNx/992e2e79d1.png

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.

My bad I meant to say a gate node, Sorry

This doesn’t work for me, thanks for trying though.

What are you trying to do exactly? You said cooldown right? I mean, you can easily just put some bool logic into it. state machines whatever.

If you want a cooldown, you can either use a delay or a timer. and reset the timer after the ability is down.

yes, a cooldown. The problem is that I still trying to learn everything

So, my answer is correct. You can use the delay. And if you want to, you can just set bool statements instead of setting the state back after the delay.