13 if (state !=
EDamageState.DESTROYED || !m_Asset || !m_SupportEntity)
16 SCR_DamageManagerComponent objectDmgManager = SCR_DamageManagerComponent.Cast(m_Asset.FindComponent(SCR_DamageManagerComponent));
18 objectDmgManager.GetOnDamageStateChanged().Remove(OnObjectDamage);
20 m_SupportEntity.FinishTask(
this);
24 override void RehookTaskAsset(IEntity
object)
31 SCR_DamageManagerComponent objectDmgManager = SCR_DamageManagerComponent.Cast(m_Asset.FindComponent(SCR_DamageManagerComponent));
33 objectDmgManager.GetOnDamageStateChanged().Insert(OnObjectDamage);
37 override bool SetSupportEntity()
43 Print(
"ScenarioFramework: Task Kill support entity not found in the world, task won't be created!", LogLevel.ERROR);
58 SCR_DamageManagerComponent objectDmgManager = SCR_DamageManagerComponent.Cast(m_Asset.FindComponent(SCR_DamageManagerComponent));
60 objectDmgManager.GetOnDamageStateChanged().Insert(OnObjectDamage);