Weather.ReleaseOverride() in OnTriggerLeave may not trigger weather change, added a workaround with SetActive(false)
This commit is contained in:
parent
7e83d2687e
commit
ab50457049
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user