This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
wait [2018/03/16 09:50] justin |
wait [2020/04/22 18:01] (current) justin |
||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Waits for the specified number of seconds before proceeding to next statement in the script being executed. | + | Waits for the specified number of seconds before proceeding to next statement in the [[script]] being executed. |
====Signature:==== | ====Signature:==== | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |duration|Duration of time to wait (in seconds).|[[Decimal]]|Yes| | + | |duration|Duration of time to wait (in seconds).|[[Number]]|Yes| |
====Example:==== | ====Example:==== | ||
- | <code python> | + | <code bauxite> |
wait(2) | wait(2) | ||
</code> | </code> | ||
- | //Results:// The script will wait for 2 seconds before proceeding to the next event within that script. | + | //Results:// The [[script]] will wait for 2 seconds before proceeding to the next event within that [[script]]. |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Wait** function for dramatic pauses between events of a cutscene or to allow time for a particular animation to complete. | + | Use the **Wait** function for dramatic pauses between events of a cutscene or to allow time for a particular [[animation]] to complete. |
</WRAP> | </WRAP> | ||