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.
25 lines
526 B
25 lines
526 B
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 |