Hi all,
I know there is the "Periodical" event in Skript, but I am looking for a performance friendly way to check some variables every second.
In Skript I would do it like this:
every 1 second:
do something
But the event is always running, even when I am doing nothing or it is not needed (e.g. Minigames, Events etc.)
Does anybody know of another option to have such a timer running but only as long as I need it?
I think in Java you can create tasks for specific period and then delete them again. How to do something similar in Skript?
Thanks for your help!
I know there is the "Periodical" event in Skript, but I am looking for a performance friendly way to check some variables every second.
In Skript I would do it like this:
every 1 second:
do something
But the event is always running, even when I am doing nothing or it is not needed (e.g. Minigames, Events etc.)
Does anybody know of another option to have such a timer running but only as long as I need it?
I think in Java you can create tasks for specific period and then delete them again. How to do something similar in Skript?
Thanks for your help!