18 void ReserveAction(AIAgent owner)
21 IEntity ent = owner.GetControlledEntity();
26 m_pDamageManager.GetOnDamageStateChanged().Insert(OnDamageStateChanged);
36 m_pDamageManager.GetOnDamageStateChanged().Remove(OnDamageStateChanged);
37 m_pDamageManager =
null;
51 override void OnActionEnd(IEntity owner)
53 super.OnActionEnd(owner);
55 if(Event_EOnActionEnd)
56 Event_EOnActionEnd.Invoke(
GetUser());
60 override void OnActionFailed(IEntity owner)
62 super.OnActionFailed(owner);
64 if(Event_EOnActionEnd)
65 Event_EOnActionFailed.Invoke(
GetUser());
74 if (!Event_EOnActionEnd && createNew)
76 return Event_EOnActionEnd;
84 if (!Event_EOnActionFailed && createNew)
86 return Event_EOnActionFailed;
90 override void OnDelete(IEntity owner)
93 m_pDamageManager.GetOnDamageStateChanged().Remove(OnDamageStateChanged);