Skip to end of metadata
Go to start of metadata

Overview

Additional documentation:

Download: 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

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