enderalse/source/scripts/_00e_cqj02_sc02_musiccontrolsc.psc

37 lines
1.2 KiB
Plaintext
Raw Normal View History

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())
_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())
_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