enderalse/source/scripts/_00e_fs_nqr05_weathertriggersc.psc

37 lines
1.2 KiB
Plaintext

Scriptname _00E_FS_NQR05_WeatherTriggerSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter (ObjectReference akActionREF)
if akActionREF == PlayerREF
if (FS_NQR05.GetCurrentStageID() >= 65) && (FS_NQR05.GetCurrentStageID() <= 180)
_00E_FS_NQR05_SiteWeather.SetActive(True)
EndIf
EndIf
EndEvent
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
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
Weather Property _00E_FS_NQR05_SiteWeather Auto
Quest Property FS_NQR05 Auto