27 lines
694 B
Plaintext
27 lines
694 B
Plaintext
Scriptname _00E_CQC04_AddSilenceSC extends ObjectReference
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
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 |