csharp
public sealed class TagCooldownDecoratorA cooldown shared by name across the whole tree.
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 Continuouspublic Symbol TagThe tag this waits on.
public float SecondsHow 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