30 lines
1004 B
Plaintext
30 lines
1004 B
Plaintext
|
Scriptname _00E_MQ12c_AddSilenceSC extends ObjectReference
|
||
|
|
||
|
;=====================================================================================
|
||
|
; EVENTS
|
||
|
;=====================================================================================
|
||
|
|
||
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
||
|
|
||
|
if akActionRef == PlayerREF && !MQ12c.IsObjectiveCompleted(5) && MQ12c.IsRunning()
|
||
|
_00E_SilenceTransitionHighPriority.Add()
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
||
|
|
||
|
if akActionRef == PlayerREF && MQ12c.IsRunning()
|
||
|
_00E_SilenceTransitionHighPriority.Remove()
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
|
||
|
Quest Property MQ12c Auto
|
||
|
|
||
|
MusicType Property _00E_SilenceTransitionHighPriority Auto
|