Cooldown

Power Type

Provides a cooldown; can be used for providing cooldowns to power types that do not have a built-in cooldown or as a simple timer.

Type ID: origins:cooldown

Note

This power type provides a cooldown that can be triggered with the Trigger Cooldown (Entity Action Type) and Change Resource (Entity Action Type), and check the value of with the Resource (Entity Condition Type).

Fields

Field Type Default Description
cooldown Integer Cooldown duration in ticks.
hud_render Hud Render Determines how the cooldown of this power is visualized on the HUD.

Examples

{
    "type": "origins:cooldown",
    "cooldown": 200,
    "hud_render": {
        "should_render": true,
        "bar_index": 3
    }
}

This example will provide a cooldown that will last for 10 seconds, and display the 4th resource bar sprite from the default sprite sheet.