Active Self

Power Type.

Executes an entity action on the player when the player uses a specified Key (default: G).

Type ID: origins:active_self

Fields

Field Type Default Description
entity_action Entity Action The action to execute on the player.
cooldown Integer Interval of ticks this power needs to recharge before the action can be executed again.
hud_render Hud Render Determines how the cooldown of this power is visualized on the HUD.
key Key {"key": "key.origins.primary_active"} Which active key this power should respond to.

Example

{
    "type": "origins:active_self",
    "entity_action": {
        "type": "origins:if_else",
        "condition": {
            "type": "origins:on_fire"
        },
        "if_action": {
            "type": "origins:extinguish"
        },
        "else_action": {
            "type": "origins:set_on_fire",
            "duration": 8
        }
    },
    "cooldown": 20,
    "hud_render": {
        "should_render": false
    }
}

This power allows players to press G in order to set themselves on fire for 8 seconds, or, if they are already burning, extinguish themselves.