Magnusen2 Posted June 20, 2021 Share Posted June 20, 2021 I got the following function: function SetWeather() Weather.ReleaseOverride() Weather SelWeather = xxxWeatherList.GetAt(MCM.GetModSettingInt(ThisMod, "fSettingsSetWeather:Settings")) SelWeather.ForceActive(true) endFunctionWhat i'm trying to do: get a weather form from the formlist, then apply it to ForceActive(true). But when i try to compile in the CK i get "type mismatch while assigning to a weather (cast missing or types unrelated)". Link to comment Share on other sites More sharing options...
pepperman35 Posted June 20, 2021 Share Posted June 20, 2021 FormList Property myWeatherList Auto Const myWeatherList.GetAt(i) as Weather ; where i is a weather in the formlist Link to comment Share on other sites More sharing options...
Magnusen2 Posted June 20, 2021 Author Share Posted June 20, 2021 FormList Property myWeatherList Auto Const myWeatherList.GetAt(i) as Weather ; where i is a weather in the formlistThat worked. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts