Action On Hit

Power Type

Executes an action when the entity that has the power has hit another entity.

Type ID: origins:action_on_hit

Note

In the context of this power type, the 'actor' entity is the entity that has the power whilst the 'target' entity is the entity that was hit.

Fields

Field Type Default Description
bientity_action Bi-entity Action Type The action to be executed on either or both the 'actor' or '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.
cooldown Integer 1 Interval of ticks this power needs to recharge before the power can be triggered again.
hud_render Hud Render {"should_render": false} Determines how the cooldown of this power is visualized on the HUD.

Examples

{
    "type": "origins:action_on_hit",
    "bientity_action": {
        "type": "origins:add_velocity",
        "z": 2
    }
}

This example will add positive-Z axis velocity to the entity that's been hit by the entity that has the power, essentially granting the entity with this power extra knockback.