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.
30 lines
1004 B
30 lines
1004 B
3 years ago
|
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
|