Name | Wait |
Syntax | wait (<duration>) (queue:<name>) (system/{delta}) |
Short Description | Delays a script for a specified amount of time. |
Full Description | Pauses the script queue for the duration specified. If no duration is specified it defaults to 3 seconds.
Accepts the 'queue:<name>' argument which allows the delay of a different queue. Accepts a 'system' argument to delay based on system time (real-world time on a clock). When that argument is not used, waits based on delta time (in-game time tracking, which tends to vary by small amounts, especially when the server is lagging). Generally, do not use the 'system' argument unless you have a specific good reason you need it. |
Related Tags | <QueueTag.speed> Returns the speed of the queue as a Duration. A return of '0' implies it is 'instant'. (...)
|
Usage Example |
|
Usage Example |
|
Synonyms (Search Aid) | delay |
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/WaitCommand.java#L22 |