enderalse/source/scripts/_00e_bergpasszauberbuchskelettspawn.psc

30 lines
953 B
Plaintext
Raw Normal View History

Scriptname _00E_BergpassZauberbuchSkelettSpawn extends ObjectReference
Actor Property PlayerRef Auto
GlobalVariable Property _00E_BergpassSkelettSpawnDone Auto
Keyword Property LinkCustom03 Auto
Explosion Property ExplosionIllusionMassiveLight01 Auto
2021-10-05 22:22:24 +00:00
Actor Property _06_UniPassMagierRef Auto
Event OnActivate(ObjectReference akActionRef)
2021-10-05 22:22:24 +00:00
If akActionRef == PlayerRef
GoToState("DoNothing")
If _00E_BergpassSkelettSpawnDone.GetValueInt() == 0
_00E_BergpassSkelettSpawnDone.SetValueInt(1)
2021-10-05 22:22:24 +00:00
_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