Action On Death

Power Type

Executes an action when the entity that has the power dies.

Type ID: origins:action_on_death

Note

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": "origins:action_on_death",
    "bientity_action": {
        "type": "origins:and",
        "actions": [
            {
                "type": "origins:target_action",
                "action": {
                    "type": "origins:explode",
                    "power": 5,
                    "destruction_type": "none",
                    "damage_self": false
                }
            }
        ]
    }
}

This example will make the entity that died explode.