SetAllTimecycles
This function was added in DSL 10
Description
Applies the given timecycle object to all available timecycles, making the game's atmosphere look even across all times, seasons, and weather conditions. This function is generally not recommended for typical use, as it can significantly disrupt the visual consistency of both interior and exterior environments. Unless the timecycles are later restored using RestoreTimecycles
.
If your intention is to modify a specific timecycle, consider using SetTimecycle
or SetExtraTimecycle
instead.
info
A timecycle object (userdata) can be obtained from the following functions:
function SetAllTimecycles(timecycle) --[[ ... ]] end
Parameters
timecycle
:userdata
- A timecycle object.
Return Values
None.
Example
local TC = CopyTimecycle(GetTimecycle(ClockGet(), SeasonGet(), WeatherGet()))
SetAllTimecycles(TC)