- Documentation
- Client functions
- resetMinuteDuration
Function
resetMinuteDuration
Ends the local minute length set with setMinuteDuration in a client script: the clock goes back to the server's time and pace.
Syntax
bool resetMinuteDuration()Returns
Always true.
Example
resetMinuteDuration()
See also
setMinuteDurationSets how many milliseconds one game clock minute lasts (1000 by default, so a game day lasts 24 minutes). A higher value = a slower day.setTimeSets the in-game time for every player. From then on the clock keeps running by itself (unless it is stopped withsetTimeFrozen); one game minute lasts one second by default (setMinuteDuration). The time of day changes the lighting, the sky colour and whether it is dark.getMinuteDurationReturns the game clock minute length in milliseconds.