enderalse/scripts/source/_00e_altishmartepsarcophagusanimscript.psc

66 lines
1.1 KiB
Plaintext

ScriptName _00E_AltIshmartepSarcophagusAnimScript Extends ObjectReference
import Utility
Actor Property playerRef Auto
ObjectReference Property beam1 Auto
ObjectReference Property beam2 Auto
ObjectReference Property beam3 Auto
ObjectReference Property innerBurn Auto
ObjectReference Property outerBurn Auto
ObjectReference Property sarcophagusLid Auto
ImageSpaceModifier Property blinder Auto
Sound Property electroShot Auto
Sound Property electroBurn Auto
Actor Property bossActor Auto
Bool doOnce = True
Event OnTriggerEnter( ObjectReference ref )
if( doOnce )
doOnce = False
beam1.Enable()
electroShot.Play( Self )
Wait( 2 )
beam2.Enable()
electroShot.Play( Self )
wait( 2 )
beam3.Enable()
electroShot.Play( Self )
innerBurn.Enable()
outerBurn.Enable()
electroBurn.Play( self )
Wait( 4.5 )
blinder.ApplyCrossFade( 0.5 )
sarcophagusLid.Activate( Self )
bossActor.Activate( self )
beam1.Disable()
beam2.Disable()
beam3.Disable()
innerBurn.Disable()
outerBurn.Disable()
EndIf
EndEvent