Author Topic: Is there a way to make events go past 30 seconds?  (Read 1560 times)

^
It's kinda bugging me, cause I need this for a map I'm making.


You could cleverly event with relays and toggleeventenabled, or use multiple bricks.

[30000]Onactive->self->relay
[####]Onrelay ->self->relay
[####]Relay -> *whatever your events are*

Then from that point you make everything relays, to add longer than 60 seconds just ad another line like the second. (I have not tested this but it should work)

Use VCE loops

Code: [Select]
[0] [x] [       ] [Onactivate] [Self] [VCE_Ifvariable] [count] [==] [10] [1 3]
[1] [x] [       ] [Onvariablefalse] [Self] [VCE_modvariable] [Brick] [count] [Add] [1]
[2] [x] [1000] [Onvariablefalse] [Self] [VCE_Ifvariable] [count] [==] [10] [1 3]
[3] [x] [       ] [Onvariabletrue] [Self] [Setcolor] [16]

This counts to 10 in ten seconds, and when it reaches 10, it changes color.

This can be used for really long times, such as the below:

Code: [Select]
[0] [x] [         ] [Onactivate] [Self] [VCE_Ifvariable] [count] [==] [1200] [1 3]
[1] [x] [         ] [Onvariablefalse] [Self] [VCE_modvariable] [Brick] [count] [Add] [1]
[2] [x] [30000] [Onvariablefalse] [Self] [VCE_Ifvariable] [count] [==] [1200] [1 3]
[3] [x] [         ] [Onvariabletrue] [Self] [Setcolor] [16]

This would take ten minutes to change color.

Code: [Select]
[0] [x] [         ] [Onactivate] [Self] [VCE_Ifvariable] [count] [==] [7200] [1 3]
[1] [x] [         ] [Onvariablefalse] [Self] [VCE_modvariable] [Brick] [count] [Add] [1]
[2] [x] [30000] [Onvariablefalse] [Self] [VCE_Ifvariable] [count] [==] [7200] [1 3]
[3] [x] [         ] [Onvariabletrue] [Self] [Setcolor] [16]

This would take an hour.

That initial event was just to get it started, in order to not use relays.

If the person that activated those events leaves it will break

If the person that activated those events leaves it will break
Wouldn't a normal 0-30000ms event delay also cancel? I don't know if I've ever tried.

00000 OnAct > Self > fire Relay
##### OnRelay > (your events)
30000 Onrelay > Sely >Fire Relay

[30000]Onactive->self->relay
[####]Onrelay ->self->relay
[####]Relay -> *whatever your events are*

This causes a relay loop.

This causes a relay loop.

And are the same events that Alyx Vance posted.



Do not use relays, they are not good for long delays.  Use the VCE loop I provided