Vixen
c7401864
csharp
public sealed class TagCooldownDecorator

A cooldown shared by name across the whole tree.

Read the guide page for this →

Remarks

Unreal's pair, and the pair is the point: SetTagCooldownDecorator starts the clock wherever the thing actually happened, and any number of these refuse entry until it has run out. "Do not shout again for eight seconds" belongs on the branch that shouts; "do not enter anything that shouts" belongs on four other branches.

Fields and properties (3)

  • public override bool Continuous
  • public Symbol Tag

    The tag this waits on.

  • public float Seconds

    How long it waits.

Methods (2)

  • public TagCooldownDecorator(Symbol tag, float seconds)

    A cooldown shared by name across the whole tree.

  • public override bool Evaluate(in BehaviorContext context, ReadOnlySpan<byte> state)

    Whether the node may be entered, or may keep running.

Used by (2)

  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BuildStateVixen.Ai