Difference between revisions of "Wait"
Jump to navigation
Jump to search
ZachStrout (talk | contribs) (Created page with "<c>wait</c> pauses execution of this script for some amount of time. See also: time, yield === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Me...") |
(Comment on yield) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<c>wait</c> pauses execution of this script for some amount of time. | <c>wait</c> pauses execution of this script for some amount of time. | ||
| − | See also: time, yield | + | Behind the scenes, it [[yield]]s on every frame until the requested amount of time has passed. |
| + | |||
| + | See also: [[time]], [[yield]] | ||
=== Arguments === | === Arguments === | ||
| Line 9: | Line 11: | ||
! Parameter Name !! Default Value !! Meaning | ! Parameter Name !! Default Value !! Meaning | ||
|- | |- | ||
| − | | ''seconds'' || | + | | ''seconds'' || 1.0 || how many seconds to wait |
|} | |} | ||
Latest revision as of 13:38, 6 July 2023
wait pauses execution of this script for some amount of time.
Behind the scenes, it yields on every frame until the requested amount of time has passed.
Arguments
| Parameter Name | Default Value | Meaning |
|---|---|---|
| seconds | 1.0 | how many seconds to wait |
Example
wait 2.5 // pauses the script for 2.5 seconds