4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.2 KiB

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