2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_CQJ02_SC02_MusicControlSC extends ObjectReference
|
|
|
|
|
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
if akActionRef == PlayerREF && (CQJ02.GetCurrentStageID() >= 15 && !CQJ02.IsCompleted())
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_SilenceTransitionLowPriority02.Add()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
if akActionRef == PlayerREF && (CQJ02.GetCurrentStageID() >= 15 && !CQJ02.IsCompleted())
|
2021-10-05 22:15:58 +00:00
|
|
|
_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
|