34 lines
760 B
Plaintext
34 lines
760 B
Plaintext
Scriptname _00E_MQ11c_RyneusIdleSoundsTr extends ObjectReference
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
; if akActionRef == PlayerREF
|
|
; RegisterForSingleUpdate(11)
|
|
; EndIf
|
|
|
|
EndEvent
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
; if akActionRef == PlayerREF
|
|
; UnregisterForUpdate()
|
|
; EndIf
|
|
|
|
EndEvent
|
|
|
|
Event OnUpdate()
|
|
|
|
; if RyneusRef.IsInLocation(_00E_MQ11c_SilberhainInterior) && !(RyneusRef.IsInDialogueWithPlayer())
|
|
; if Utility.RandomFloat() <= 0.6
|
|
; _00E_MQ11c_RyneusIdleM.Play(RyneusRef)
|
|
; EndIf
|
|
; EndIf
|
|
|
|
; RegisterForSingleUpdate(11)
|
|
|
|
EndEvent
|
|
|
|
ObjectReference Property RyneusRef Auto
|
|
ObjectReference Property PlayerREF Auto
|
|
Location Property _00E_MQ11c_SilberhainInterior Auto
|
|
Sound Property _00E_MQ11c_RyneusIdleM Auto |