Weather.ReleaseOverride() in OnTriggerLeave may not trigger weather change, added a workaround with SetActive(false)

This commit is contained in:
Eddoursul 2021-10-24 04:40:47 +02:00
parent 7e83d2687e
commit ab50457049
4 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@ Event OnTriggerLeave (ObjectReference akActionREF)
if akActionREF == PlayerREF
Weather.ReleaseOverride()
; SE: Weather.ReleaseOverride() alone may not trigger weather change
if _00E_FS_NQR05_SiteWeather != None && Weather.GetCurrentWeather() == _00E_FS_NQR05_SiteWeather && Weather.GetOutgoingWeather() == None
_00E_FS_NQR05_SiteWeather.SetActive(False)
endif
EndIf
EndEvent

View File

@ -25,6 +25,10 @@ Event OnTriggerLeave (ObjectReference akActionREF)
if akActionREF == PlayerREF
Weather.ReleaseOverride()
; SE: Weather.ReleaseOverride() alone may not trigger weather change
if WeatherToSet != None && Weather.GetCurrentWeather() == WeatherToSet && Weather.GetOutgoingWeather() == None
WeatherToSet.SetActive(False)
endif
EndIf
EndEvent