enderalse/source/scripts/_00e_mq12c_addsilencesc.psc

31 lines
1002 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ12c_AddSilenceSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetForm(0x14) && !MQ12c.IsObjectiveCompleted(5) && MQ12c.IsRunning()
_00E_SilenceTransitionHighPriority.Add()
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == Game.GetForm(0x14)
_00E_SilenceTransitionHighPriority.Remove()
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
Quest Property MQ12c Auto
MusicType Property _00E_SilenceTransitionHighPriority Auto