enderalse/source/scripts/_00e_fs_nqr03_entryspheresc.psc

36 lines
1.3 KiB
Plaintext
Raw Normal View History

Scriptname _00E_FS_NQR03_EntrySpherESC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnActivate(ObjectReference akActionRef)
If akActionREF == PlayerREF && !bActivationBlocked
bActivationBlocked = true
_00E_MQ07a_DoorBangM.PlayAndWait(PlayerREF)
FadeToBlackIMOD.Apply()
Utility.Wait(2)
FadeToBlackHoldIMOD.ApplyCrossFade(2)
PlayerREF.MoveTo(FS_NQR03_PlayerTempleMarker)
FadeToBlackBackIMOD.ApplyCrossFade(1)
bActivationBlocked = false
ElseIf akActionREF != PlayerREF
_00E_MQ07a_DoorBangM.PlayAndWait(akActionRef)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool bActivationBlocked = false
Sound Property _00E_MQ07a_DoorBangM Auto
Actor Property PlayerREF Auto
ImageSpaceModifier Property FadeToBlackIMOD Auto
ImageSpaceModifier Property FadeToBlackHoldIMOD Auto
ImageSpaceModifier Property FadeToBlackBackIMOD Auto
ObjectReference Property FS_NQR03_PlayerTempleMarker Auto