User Tools

Site Tools


set_time

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_time [2024/11/04 11:48] justinset_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 14: Line 14:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-set_time(2);+set_time(0);
 </code> </code>
-//Results:// .+//Results:// Changes the current in-game time back to the start of the day (i.e. midnight).
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Time** function...+Use the **Set Time** function to progress time, for example to allow the player to sleep until the next morning when they interact with a bed.
 </WRAP> </WRAP>
  
Line 27: Line 27:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:set_time_node.png?nolink|}}+{{:set_time_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== +
-{{:wiki:set_time_demo.gif?nolink|}}+
 </WRAP> </WRAP>
 </WRAP> </WRAP>
  
 ~~NOTOC~~ ~~NOTOC~~
set_time.1730749711.txt.gz · Last modified: 2024/11/04 11:48 by justin