Author Topic: increase event delay.  (Read 3162 times)

I searched and I haven't seen anything like this made before.

So the max limit to set delays with events is 30,000. I find this too low.

I want to set even longer delays if possible.

To make this work correctly you have to make the mod client side and server side. Not a problem if it's on your own server in this situation.

To make this work correctly you have to make the mod client side and server side. Not a problem if it's on your own server in this situation.
It's also easily possible using VCE, using stateFunction and callFunction. Basically, have VCE state something like delay1, delay2, delay3, etc. When it delay1 is called after 30 seconds, have it call delay2 30 seconds later, then 30 more seconds later call delay2, then 30 more seconds and call delay3, etc, until you want it to call your actual function such as "respawn bot". If you are going for extremely long delays, or delays triggered at a certain time (dawn,noon,etc) I would pair this with the dayCycle events. Note: the longer the delay times, the more lines of eventing you are gonna have to do (obviously)

It's also possible to do it with default events, he just wants a cleaner way to do it

It's also easily possible using VCE, using stateFunction and callFunction. Basically, have VCE state something like delay1, delay2, delay3, etc. When it delay1 is called after 30 seconds, have it call delay2 30 seconds later, then 30 more seconds later call delay2, then 30 more seconds and call delay3, etc, until you want it to call your actual function such as "respawn bot". If you are going for extremely long delays, or delays triggered at a certain time (dawn,noon,etc) I would pair this with the dayCycle events. Note: the longer the delay times, the more lines of eventing you are gonna have to do (obviously)

Lets not make things more complicated. Toggle events are a thing and it is much easier than this solution.

VCE should not always be the solution

VCE should not always be the solution
It's not always the solution; It would just work for what he's asking, and without having to code - which can be helpful if you don't know TS. Also, with VCE in this situation, you have more complexity over what you actually want to happen when the delays are finished

Tony, if you decide to go with the VCE way I will show you how, it's pretty easy eventing so idk why Kyu thinks it's "complicated" because it's not. It might be a little time consuming, but it is in no way complicated

Please, someone show me how to do this with default events/example give?

Here is the VCE example:

This will respawn the bot after 2 full minutes

Although, doing this to respawn a bot is very inconvenient since setting the bot hole respawn time should work just fine - but keep in mind this can still be used for other things you might need long delays for

using fakekillbrick and onrespawn gives a max of 5 minutes

using fakekillbrick and onrespawn gives a max of 5 minutes
fake kill does not make the bot disappear/unable respawn

We have tons of modders on here - I just thought of how easy this to make it, literally takes like 30 lines (including client and server side) or less.

I appreciate the VCE solution but is there a cleaner way of doing it?

I appreciate the VCE solution but is there a cleaner way of doing it?
If by cleaner you mean easier, then no. Unfortunately your only solution is the use events or code

Your bot respawn time is broken for some reason, correct? Post a console.log here or on your help topic

It's not always the solution; It would just work for what he's asking, and without having to code - which can be helpful if you don't know TS. Also, with VCE in this situation, you have more complexity over what you actually want to happen when the delays are finished

Tony, if you decide to go with the VCE way I will show you how, it's pretty easy eventing so idk why Kyu thinks it's "complicated" because it's not. It might be a little time consuming, but it is in no way complicated

Please, someone show me how to do this with default events/example give?

Here is the VCE example:

This will respawn the bot after 2 full minutes

Although, doing this to respawn a bot is very inconvenient since setting the bot hole respawn time should work just fine - but keep in mind this can still be used for other things you might need long delays for
WOAH!, My VCE doesn't do that....

WOAH!, My VCE doesn't do that....
Doesn't do what? state and call function? You must have an outdated/broken version then

goth i have no clue why you're saying vce is the answer when it's honestly ten times easier to use toggle events
to make that easier i recommend you use the event saver/loader to just append it into your event box and build on from there

VCE imo is easier to keep track of than toggles. After some time this just becomes muscle memory, whereas toggles I constantly get out of sync.