Behavior Tree Randomly Disabling

Ron77950

New member
Hello,
I have a behavior tree for enemies standard melee attack, but if the player walks past the enemy back and forth over and over the behavior tree eventually just disables even though I have a repeater that should cause it to run forever. I have attached a picture of the log and the behavior tree if you could help me understand the problem please.
 

Attachments

  • log.png
    log.png
    86.5 KB · Views: 2
  • tree.png
    tree.png
    49.7 KB · Views: 2
In cases like this I've only seen it get disabled when there is some sort of an exception and the thread cannot continue. I don't see any errors in your log though.

One way to figure out why is to place a breakpoint within DisableBehavior. This will then allow you to step up the call chain to figure out why the tree got disabled.
 
Top