Enderal SE
https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
953 B
30 lines
953 B
3 years ago
|
Scriptname _00E_BergpassZauberbuchSkelettSpawn extends ObjectReference
|
||
|
|
||
|
Actor Property PlayerRef Auto
|
||
|
GlobalVariable Property _00E_BergpassSkelettSpawnDone Auto
|
||
|
Keyword Property LinkCustom03 Auto
|
||
|
Explosion Property ExplosionIllusionMassiveLight01 Auto
|
||
3 years ago
|
Actor Property _06_UniPassMagierRef Auto
|
||
3 years ago
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
3 years ago
|
If akActionRef == PlayerRef
|
||
3 years ago
|
GoToState("DoNothing")
|
||
|
If _00E_BergpassSkelettSpawnDone.GetValueInt() == 0
|
||
|
_00E_BergpassSkelettSpawnDone.SetValueInt(1)
|
||
|
|
||
3 years ago
|
_00E_ActorSuddenAppearScript akMagier = (_06_UniPassMagierRef as _00E_ActorSuddenAppearScript)
|
||
|
Actor akSkeleton = (_06_UniPassMagierRef.GetLinkedRef(LinkCustom03) as Actor)
|
||
3 years ago
|
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
|