enderalse/scripts/source/_00e_cqj02_sc02_musiccontrolsc.psc

37 lines
1.2 KiB
Plaintext

Scriptname _00E_CQJ02_SC02_MusicControlSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF && (CQJ02.GetStage() >= 15 && !CQJ02.IsCompleted())
_00E_SilenceTransitionLowPriority02.Add()
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF && (CQJ02.GetStage() >= 15 && !CQJ02.IsCompleted())
_00E_SilenceTransitionLowPriority02.Remove()
ElseIf akActionRef == PlayerREF && CQJ02.IsCompleted()
_00E_SilenceTransitionLowPriority02.Remove()
Self.DeleteWhenAble()
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
;GlobalVariable Property GameHour Auto
_00E_CQJ02_Functions Property CQJ02 Auto
MusicType Property _00E_SilenceTransitionLowPriority02 Auto