Skip to main content

SeasonGet

This function was added in DSL 10

Description

Gets the current season, primarily used by timecycle functions.

function SeasonGet() --[[ ... ]] end

Parameters

None.

Return Values

season: number

NumberSeason
0Summer
1Autumn
2Winter
3Spring

Example

local TC = GetTimecycle(ClockGet(), SeasonGet(), WeatherGet())
if type2(TC) == 'timecycle' then
-- do something
end