unreal.BTTask_SetTagCooldown

class unreal.BTTask_SetTagCooldown(outer: Object | None = None, name: Name | str = 'None')

Bases: BTTaskNode

Cooldown task node. Sets a cooldown tag value. Use with cooldown tag decorators to prevent behavior tree execution.

C++ Source:

  • Module: AIModule

  • File: BTTask_SetTagCooldown.h

Editor Properties: (see get_editor_property/set_editor_property)

  • add_to_existing_duration (ValueOrBBKey_Bool): [Read-Write] True if we are adding to any existing duration, false if we are setting the duration (potentially invalidating an existing end time).

  • cooldown_duration (ValueOrBBKey_Float): [Read-Write] Value we will add or set to the Cooldown tag when this task runs.

  • cooldown_tag (GameplayTag): [Read-Write] Gameplay tag that will be used for the cooldown.

  • ignore_restart_self (bool): [Read-Write] if set, task search will be discarded when this task is selected to execute but is already running

  • node_name (str): [Read-Write] node name