Behavior Tree stuck at the root node

The behavior tree gets stuck at the root node(yellow) and then the screen hangs due to large amount of memory usage. The tree is shown in the figure.

I am new to using the engine. Sorry if the question is not appropriate. The code was written in C++. I already searched a lot but didn’t find any solution. Thanks for the help.

1 Like

The tree itself look good, so there must be something else going on. What’s the Next Target Selection task? How is it implemented? What does it do, and when?

The code was written in C++

I assume you’re talking about the task node. Would you mind posting the sources?

Cheers,

–mieszko

Thanks for replying and yes I was talking about my task nodes.
Basically the Next Target Selection task selects a target from available list of TargetPoints that are in the level in case there are no target present. So it’s for wandering.
It is implemented in a way that the character goes back and forth on a single line(made of target points).
Link to the source. I would appreciate it if you can have a look.