36 lines
675 B
Plaintext
36 lines
675 B
Plaintext
|
Scriptname _00E_MQ11a_ReanimateOnActivate extends ObjectReference
|
||
|
|
||
|
Event OnInit()
|
||
|
|
||
|
Self.BlockActivation(True)
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnActivate(ObjectReference akActionRef)
|
||
|
|
||
|
If (akActionRef == PlayerRef) && (bDone == False)
|
||
|
bDone = True
|
||
|
|
||
|
ActivateLinkedCorpse(EnemyGroup_Child01)
|
||
|
ActivateLinkedCorpse(EnemyGroup_Child02)
|
||
|
ActivateLinkedCorpse(EnemyGroup_Child03)
|
||
|
|
||
|
Self.BlockActivation(False)
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Function ActivateLinkedCorpse(Keyword kwd)
|
||
|
|
||
|
GetLinkedRef(kwd).Activate(Self)
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
|
||
|
Actor Property PlayerRef Auto
|
||
|
|
||
|
Keyword Property EnemyGroup_Child01 Auto
|
||
|
Keyword Property EnemyGroup_Child02 Auto
|
||
|
Keyword Property EnemyGroup_Child03 Auto
|
||
|
|
||
|
Bool bDone
|