enderalse/scripts/source/_00e_bergpasszauberbuchskelettspawn.psc

30 lines
953 B
Plaintext

Scriptname _00E_BergpassZauberbuchSkelettSpawn extends ObjectReference
Actor Property PlayerRef Auto
GlobalVariable Property _00E_BergpassSkelettSpawnDone Auto
Keyword Property LinkCustom03 Auto
Explosion Property ExplosionIllusionMassiveLight01 Auto
Actor Property _06_UniPassMagierRef Auto
Event OnActivate(ObjectReference akActionRef)
If akActionRef == PlayerRef
GoToState("DoNothing")
If _00E_BergpassSkelettSpawnDone.GetValueInt() == 0
_00E_BergpassSkelettSpawnDone.SetValueInt(1)
_00E_ActorSuddenAppearScript akMagier = (_06_UniPassMagierRef as _00E_ActorSuddenAppearScript)
Actor akSkeleton = (_06_UniPassMagierRef.GetLinkedRef(LinkCustom03) as Actor)
akSkeleton.PlaceAtMe(ExplosionIllusionMassiveLight01)
akSkeleton.SetAlpha(0.0, False)
akMagier.StartSuddenAppear()
akSkeleton.DisableNoWait()
EndIf
EndIf
EndEvent
State DoNothing
Event OnActivate(ObjectReference akActionRef)
; Do nothing
EndEvent
EndState