Wait

From MiniScript Wiki
Revision as of 13:38, 6 July 2023 by Marc Gurevitx (talk | contribs) (Comment on yield)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

See also: time, yield

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