25 lines
526 B
Plaintext
25 lines
526 B
Plaintext
Scriptname _00E_EnemyGroupChildScript extends Actor
|
|
|
|
Keyword Property EnemyGroup_Parent Auto
|
|
|
|
Event OnCombatStateChanged(Actor akTarget, int aeCombatState)
|
|
If aeCombatState == 1
|
|
_CallForParentHelp()
|
|
EndIf
|
|
EndEvent
|
|
|
|
;/
|
|
Event OnDying(Actor akKiller)
|
|
_CallForParentHelp()
|
|
EndEvent
|
|
/;
|
|
|
|
Function _CallForParentHelp()
|
|
If EnemyGroup_Parent
|
|
Actor myParent = GetLinkedRef(EnemyGroup_Parent) as Actor
|
|
If myParent
|
|
; Debug.Trace(self + ": calling parent " + myParent)
|
|
myParent.EvaluatePackage()
|
|
EndIf
|
|
EndIf
|
|
EndFunction |