Action On Death (Power Type)
Executes an action when the entity that has the power dies.
Executes an action when the entity that has the power dies.
Type ID: apoli:action_on_death
In the context of this power type, the ’target’ entity is the entity that died while the ’actor’ entity is the one that killed it.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
bientity_action | Bi-entity Action Type | The action to be executed on either or both the ’actor’ and ’target’ entities. | |
bientity_condition | Bi-entity Condition Type | optional | If specified, the specified action will only be executed if this condition is fulfilled by either or both ’actor’ and ’target’ entities. |
damage_condition | Damage Condition Type | optional | If specified, the specified action will only be executed if this condition is fulfilled by the damage dealt by the ’actor’ entity. |
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 example will make the entity that died explode.