2021-10-05 22:15:58 +00:00
|
|
|
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()
|
2024-01-09 22:00:18 +00:00
|
|
|
AllowIdleChatter.SetValue(0)
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_SilenceTransitionHighPriority.Add()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
If !CQC04.IsCompleted() && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
|
2024-01-09 22:00:18 +00:00
|
|
|
AllowIdleChatter.SetValue(1)
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_SilenceTransitionHighPriority.Remove()
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Quest Property CQC04 Auto
|
|
|
|
|
|
|
|
MusicType Property _00E_SilenceTransitionHighPriority Auto
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
GlobalVariable Property AllowIdleChatter Auto
|