enderalse/scripts/source/_00e_linkedchainenableafteractivation.psc

13 lines
366 B
Plaintext

Scriptname _00E_LinkedChainEnableAfterActivation extends ObjectReference
Actor Property PlayerRef Auto
Int DoOnce
Event OnActivate(ObjectReference akActionRef)
If akActionRef == PlayerRef && DoOnce == 0
DoOnce = 1
Actor akTargetToActivate = GetLinkedRef() as Actor
(akTargetToActivate as _00E_ActorSuddenAppearScript).StartSuddenAppear()
EndIf
EndEvent