Author Topic: How would I make a time limit with event?  (Read 288 times)

I want to make a time limit in which a helicopter comes five minutes after you press a certain button.
I tried using a fireRelayDown type of thing.
Attached below is something that didn't work, a system of firerelaydowns. Note that i am not familier with relays other then just firerelay.
If someone could tell me what events i need to put, that would be great.

You need a certain event pack, but if you use print bricks. You can make it so when the prints reach a number, something happens (like enabling the events on the switch).

Use print bricks.
First: On relay>self>fire relay (every 10 seconds)
On relay>self>incprintcount (1)
(one second delay)Onprintequal (9)>self>setprint (1)
(one second delay)Onprintequal (9)>Named brick (second brick)>incprintcount (1)
Second: Onprintequal (5)>named brick (button)> Enable event(s)
Onprintequal (5)>self>setprintcount>0

If this doesn't work, I would use relays. Have a starter/stopper though.
Start: Input>named brick (first brick)> fire relay
Stop: Input> named brick (first brick)> cancel events
You can also add another brick if you want an accurate seconds counter.