Active Self

Power Type.

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

Type ID: apoli:active_self

Fields

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

Example

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

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