30 lines
896 B
Plaintext
30 lines
896 B
Plaintext
|
Scriptname _00E_BergpassZauberbuchSkelettSpawn extends ObjectReference
|
||
|
|
||
|
Actor Property PlayerRef Auto
|
||
|
GlobalVariable Property _00E_BergpassSkelettSpawnDone Auto
|
||
|
Keyword Property LinkCustom03 Auto
|
||
|
Explosion Property ExplosionIllusionMassiveLight01 Auto
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
If akActionRef == PlayerRef
|
||
|
GoToState("DoNothing")
|
||
|
|
||
|
If _00E_BergpassSkelettSpawnDone.GetValueInt() == 0
|
||
|
_00E_BergpassSkelettSpawnDone.SetValueInt(1)
|
||
|
|
||
|
_00E_ActorSuddenAppearScript akMagier = (GetLinkedRef() as _00E_ActorSuddenAppearScript)
|
||
|
Actor akSkeleton = (akMagier.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
|