KROYSDOCS
HomeWhat's newv0.1.0
SCRIPTING API / AI and navigation / BehaviorTreeAgent

BehaviorTreeAgent

Base script for C# behavior-tree leaves: override OnBehaviorTask to implement the ScriptTask / ScriptCondition / Attack nodes of the entity's AI Controller tree. Call base.OnUpdate when overriding OnUpdate.

Kindclass
NamespaceKroys.EngineScripting
Members2
SourceAI.cs
DECLARATION

Declaration

Namespace Kroys.EngineScripting.

Declaration
public abstract class BehaviorTreeAgent : EntityScript
REFERENCE

Members

Methods
#protected override void OnUpdate(float deltaTime)
Runs the active behavior-tree task through OnBehaviorTask; call base.OnUpdate when you override it.
methodprotected
Callbacks you override
#protected abstract AITaskStatus OnBehaviorTask(string task, float deltaTime)
Runs one tick of the named task; return Running until it is done.
callbackprotected
Signatures
protected abstract AITaskStatus OnBehaviorTask(string task, float deltaTime)
protected override void OnUpdate(float deltaTime)

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.