Cooldown

Power Type.

A generic power with a cooldown. The cooldown can be started with the Trigger Cooldown action. You can check whether the cooldown has passed with a Resource condition checking for the value of the cooldown power to be 0.

Type ID: origins:cooldown

Fields

Field Type Default Description
cooldown Integer Cooldown duration in ticks.
hud_render Hud Render Specifies how and if a cooldown bar is rendered.

Example

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

This power will last for 10 seconds (20 ticks = 1 second), and display the 4th resource bar sprite in the default sprite sheet if triggered with the origins:trigger_cooldown entity action.