Modular Behavior Tree

Overview

Additional documentation:

Download: Modular Behavior Tree Documentation.pdf

Modular Behavior Tree Documentation.pdf

New Tree File

  1. Create a new file Scripts\AI\BehaviorTrees\SoldierTree.xml
  2. In Sandbox, set the agent's ModularBehaviorTree field to SoldierTree
  3. Make sure the SelectionTree field is empty (only one type of tree can run)

Example Tree Structure

<BehaviorTree>
  <Root>
    <Sequence>
      <Log message="Test" />
      <WaitForEvent name="OnEnemySeen" />
      <Move to="Target" speed="Walk" stance="Stand" fireMode="BurstWhileMoving" />
      <Halt />
    </Sequence>
  </Root>
</BehaviorTree>