14 protected ref PointInfo m_vItemPosition;
20 void GetItemTransform(out vector mat[4])
23 m_vItemPosition.GetTransform(mat);
30 if (!m_OnCompositionDestroyed)
33 return m_OnCompositionDestroyed;
37 protected void OnDamageStateChanged()
39 SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(
GetOwner());
42 instigator = damageManager.GetInstigator().GetInstigatorEntity();
44 if (m_OnCompositionDestroyed && damageManager.IsDestroyed())
45 m_OnCompositionDestroyed.Invoke(instigator);
49 override void EOnInit(IEntity owner)
51 SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(owner);
52 damageManager.GetOnDamageStateChanged().Insert(OnDamageStateChanged);
56 override void OnPostInit(IEntity owner)
58 SetEventMask(owner, EntityEvent.INIT);