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
Source
AI.csDECLARATION
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.
Callbacks you override
#protected abstract AITaskStatus OnBehaviorTask(string task, float deltaTime)Runs one tick of the named task; return Running until it is done.
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.