Class BehaviorTreeCooldownDecorator
Adds cooldown in between node executions. Blocks node execution for a given duration after last run.
Inheritance
System.Object
BehaviorTreeCooldownDecorator
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class BehaviorTreeCooldownDecorator : BehaviorTreeDecorator, ISerializable
Constructors
BehaviorTreeCooldownDecorator()
Initializes a new instance of the BehaviorTreeCooldownDecorator.
Declaration
public BehaviorTreeCooldownDecorator()
Properties
MinDuration
Minimum cooldown time (in seconds). Unused if MinDurationSelector is used.
Declaration
[EditorOrder(10)]
[Limit(0F, 3.40282347E+38F, 1F)]
[Unmanaged]
public float MinDuration { get; set; }
Property Value
System.Single
|
MinDurationSelector
Minimum cooldown time (in seconds) from behavior's knowledge (blackboard, goal or sensor). If set, overrides MinDuration but still uses RandomDeviation.
Declaration
[EditorOrder(20)]
[Unmanaged]
public BehaviorKnowledgeSelector<float> MinDurationSelector { get; set; }
Property Value
BehaviorKnowledgeSelector<System.Single>
|
RandomDeviation
Duration time randomization range to deviate original value.
Declaration
[EditorOrder(20)]
[Limit(0F, 3.40282347E+38F, 1F)]
[Unmanaged]
public float RandomDeviation { get; set; }
Property Value
System.Single
|