2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_NQR05_WeatherTriggerSC extends ObjectReference
|
|
|
|
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnTriggerEnter (ObjectReference akActionREF)
|
|
|
|
|
|
|
|
if akActionREF == PlayerREF
|
|
|
|
if (FS_NQR05.GetStage() >= 65) && (FS_NQR05.GetStage() <= 180)
|
|
|
|
_00E_FS_NQR05_SiteWeather.SetActive(True)
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave (ObjectReference akActionREF)
|
|
|
|
|
|
|
|
if akActionREF == PlayerREF
|
|
|
|
Weather.ReleaseOverride()
|
2021-10-24 02:40:47 +00:00
|
|
|
; 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
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; PROPERTIES
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Weather Property _00E_FS_NQR05_SiteWeather Auto
|
|
|
|
Quest Property FS_NQR05 Auto
|