Skip to content

AbilityCooldownReadyCondition ​

Inherits: EntityCondition < Condition < Resource

Checks if a specific ability is off cooldown and ready to use.

Properties ​

intability_id0
boolis_readytrue

Methods ​

Stringget_entity_function_description()
boolevaluate_entity( entity: Entity )
Stringget_entity_description()

Property descriptions ​

int ability_id = 0 ​

The ID of the ability to check

bool is_ready = true ​

Whether to check if ready (true) or on cooldown (false)

Method descriptions ​

String get_entity_function_description() ​

The sentence the editor shows for the condition, with {placeholders} for its values.

bool evaluate_entity( entity: Entity ) ​

Evaluate if the ability is off cooldown

String get_entity_description() ​

A short text about what the condition checks on the entity.