enderalse/source/scripts/_00e_cqc04_addsilencesc.psc

27 lines
694 B
Plaintext
Raw Normal View History

Scriptname _00E_CQC04_AddSilenceSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
2024-01-10 14:08:24 +00:00
If (CQC04.GetCurrentStageID() < 15) && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
AllowIdleChatter.SetValue(0)
_00E_SilenceTransitionHighPriority.Add()
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
If !CQC04.IsCompleted() && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
AllowIdleChatter.SetValue(1)
_00E_SilenceTransitionHighPriority.Remove()
EndIf
EndEvent
Actor Property PlayerREF Auto
Quest Property CQC04 Auto
MusicType Property _00E_SilenceTransitionHighPriority Auto
GlobalVariable Property AllowIdleChatter Auto