Class DealDamageIHasEntityGameActionSO
- Assembly
- com.electricdrill.astra-health.Runtime.dll
Inflicts configured damage on the entity carried by any ElectricDrill.AstraRpgFramework.Contexts.IHasEntity payload. Provided as a ScriptableObject for easy assignment in the editor.
Connect to any GameEventListener whose payload implements ElectricDrill.AstraRpgFramework.Contexts.IHasEntity,
such as EntityDiedGameEventListener, EntityResurrectedGameEventListener, or a
DamageResolutionGameEventListener, and select
ExecuteAsyncForUnityEvent(IHasEntity) as the dynamic invocation target.
Damage Dealer
role only distinguishes None (unattributed system damage) from self-inflicted damage
dealt by that same entity; the Damage Target role is ignored.
Create instances via Assets → Create → Astra Health/Game Actions/Context: Entity/Deal Damage.
[CreateAssetMenu(fileName = "Deal Damage Game Action", menuName = "Astra Health/Game Actions/Context: Entity/Deal Damage")]
public class DealDamageIHasEntityGameActionSO : DealDamageGameActionSO<IHasEntity>, IExecutable<IHasEntity>, ITaggable, IEffectInstigator
- Inheritance
-
objectGameActionBaseGameAction<IHasEntity>DealDamageGameActionSO<IHasEntity>DealDamageIHasEntityGameActionSO
- Implements
-
IExecutable<IHasEntity>ITaggableIEffectInstigator
- Inherited Members
-
GameAction<IHasEntity>.TagsGameAction<IHasEntity>.DisplayNameGameAction<IHasEntity>.ExecuteAsyncForUnityEvent(IHasEntity)GameAction<IHasEntity>.OnOperationCanceled()