Skip to main content

Action On Death (Power Type)

Runs an action when the entity that has the power dies. The target is the entity that died, and the actor is the entity that killed it.

Type ID: apoli:action_on_death

Fields

FieldTypeDefaultDescription
bientity_actionBi-entity Action TypeThe action to run on the actor, the target or both.
bientity_conditionBi-entity Condition TypeoptionalIf set, the action only runs when the actor and target pass this condition.
damage_conditionDamage Condition TypeoptionalIf set, the action only runs when the killing damage passes this condition.

Examples

{
   "type":"apoli:action_on_death",
   "bientity_action":{
      "type":"apoli:target_action",
      "action":{
         "type":"apoli:explode",
         "power":5,
         "destruction_type":"none",
         "damage_self":false
      }
   }
}

This makes the entity explode when it dies.