# Behavior Tree Enum Not Switching

**URL:** <https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824>\
**Category:** AI\
**Tags:** Behavior-Tree, enumeration, character-state, unreal-engine, question\
**Created:** [October 12, 2019, 4:06am UTC](https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824 "2019-10-12T04:06:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Overwatch04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Overwatch04](https://forums.unrealengine.com/u/Overwatch04)\
**Post date:** [October 12, 2019, 4:06am UTC](https://forums.unrealengine.com/t/behavior-tree-enum-not-switching/456824/1 "2019-10-12T04:06:33Z")

</div>

I am still trying to wrap my head around behavior trees. I may be going about this wrong but I cannot get my states to switch. I have Idle, Attack, and Search as states for my character. The ‘State Finder’ returns the correct state but the behavior tree does not switch branches when the state changes. I have the animations in there to do debug. Thank you in advance for help!

 ![289865-behavior-tree-enum.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/9/97999d0751a556f0d890a3712a646fb9084ce32e.jpeg)
