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:46] – 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 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |time| |[[Number]]|Yes| | + | |time|Value to set the current time to (in seconds).|[[Number]]|Yes| |
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | set_time(2); | + | set_time(0); |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Time** function... | + | Use the **Set Time** function |
</ | </ | ||
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~~ |