This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_time [2024/11/04 11:50] – justin | set_time [2024/11/04 14:40] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Sets the current in-game time in seconds. If the provided value is less than zero or greater than the game's day/night cycle duration, the in-game day will be decremented or incremented accordingly. | + | Sets the current in-game time in seconds. If the provided value is less than zero or greater than the game's day/night cycle duration, the in-game day will be decremented or incremented accordingly. Refer to the [[Set Day]] function for details about changing the in-game day. |
====Signature: | ====Signature: | ||
Line 16: | Line 16: | ||
set_time(0); | set_time(0); | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Time** function to progress time until the next morning when the player interacts | + | Use the **Set Time** function to progress time, for example to allow the player to sleep until the next morning when they interact |
</ | </ | ||
Line 27: | Line 27: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo:==== | + | |
- | {{: | + | |
</ | </ | ||
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |