Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
704 B
27 lines
704 B
3 years ago
|
Scriptname _00E_CQC04_AddSilenceSC extends ObjectReference
|
||
|
|
||
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
||
|
|
||
|
If (CQC04.GetStage() < 15) && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
|
||
|
Levelsystem.SetAllowIdleChatter(False)
|
||
|
_00E_SilenceTransitionHighPriority.Add()
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
||
|
|
||
|
If !CQC04.IsCompleted() && (akActionRef == Game.GetPlayer()) && CQC04.IsRunning()
|
||
|
Levelsystem.SetAllowIdleChatter(True)
|
||
|
_00E_SilenceTransitionHighPriority.Remove()
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
|
||
|
Quest Property CQC04 Auto
|
||
|
|
||
|
MusicType Property _00E_SilenceTransitionHighPriority Auto
|
||
|
|
||
|
_00E_QuestFunctions Property Levelsystem Auto
|