Solved Wait X time

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MeHow

Active Member
Feb 6, 2017
140
13
18
22
Lithuania
Hello everybody, I search everywhere how to do
code_language.skript:
wait {_sec} seconds
.
If you can, help me :I
 
If you cant get it working any other way, you could just
code_language.skript:
loop {_sec} times:
    wait 1 second
 
The syntax isn't:
code_language.skript:
wait %number% (seconds|ticks|hours|minutes|days|years)
it is:
code_language.skript:
wait %timespan%
So, that means if you want wait x seconds, x being a number in a variable you would have to parse it:
code_language.skript:
wait "%{_my-var}% seconds" parsed as timespan
 
Status
Not open for further replies.