SIM_Steady_Weather.lua

--[[
	Steady Weather
	v1.0.0 FrankLFRS 2024
	
	Keeps the weather steady even though variations are set
--]]


-- Datarefs

DataRef("SIM_Weather_Change_Mode", "sim/weather/region/change_mode", "writable") -- 3 = steady


-- Check MKR (every 10s)

function SIM_Weather_Change_Mode_Do_Sometimes()
	if(SIM_Weather_Change_Mode ~= 3) then
		SIM_Weather_Change_Mode = 3
	end
end


-- Beginning of the periodic checking

do_sometimes("SIM_Weather_Change_Mode_Do_Sometimes()")