Action on Kill
Executes a bientity action upon killing an entity.
Type ID: appli:action_on_kill
Fields
| Field | Type | Default | Description |
|---|---|---|---|
bientity_action |
Bi-entity Action | The action to execute, with the player/power holder as the actor and the dying entity as the target. | |
bientity_condition |
Bi-entity Condition | optional | The condition to check, with the player/power holder as the actor and the dying entity as the target. |
damage_condition |
Damage Condition | optional | The condition to check against the damage source. |
Examples
{
"type": "appli:action_on_kill",
"bientity_action": {
"type": "apoli:invert",
"action": {
"type": "apoli:add_velocity",
"z": 3
}
}
}
This example will fling the player/killer away from anything it kills.