— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
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.
set_time(time)
Argument | Description | Type | Required |
---|---|---|---|
time | Value to set the current time to (in seconds). | Number | Yes |
set_time(0);
Results: Sets the current in-game time to the start of the day (i.e. midnight).
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.