# Need help with AI behavior tree

**URL:** <https://forums.unrealengine.com/t/need-help-with-ai-behavior-tree/2476252>\
**Category:** Character & Animation\
**Tags:** Behavior-Tree, unreal-engine, question\
**Created:** [April 25, 2025, 9:37pm UTC](https://forums.unrealengine.com/t/need-help-with-ai-behavior-tree/2476252 "2025-04-25T21:37:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FF2183](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FF2183](https://forums.unrealengine.com/u/FF2183)\
**Post date:** [April 25, 2025, 9:37pm UTC](https://forums.unrealengine.com/t/need-help-with-ai-behavior-tree/2476252/1 "2025-04-25T21:37:59Z")

</div>

Im having an issue with my AI Character. When i choose chase or shoot, they will work separately. However when i connect them to the parallel, it only chooses the primary. And i need it to switch

 ![Screenshot_9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/4/0e44172a0941b2153f537fb104ff62f4779d72ca.png)

---

<div class="post-metadata">

**Author:** ![BRGEzeHulton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BRGEzeHulton](https://forums.unrealengine.com/u/BRGEzeHulton)\
**Post date:** [April 30, 2025, 4:32pm UTC](https://forums.unrealengine.com/t/need-help-with-ai-behavior-tree/2476252/2 "2025-04-30T16:32:46Z")

</div>

Hi @FF2183, The issue is due to how the `Simple Parallel` node works in UE5.\*\*

The main task (e.g., `Chase`) runs until it ends (success/fail), and the parallel task (e.g., `Shoot`) only runs _while_ the main task is active. It doesn’t switch — if `Chase` ends, the parallel task is aborted too.

Recommended fix:

- Use a **Service** on the `Chase` node to monitor distance or a shoot condition.
- Use blackboard keys to switch between `Chase` and `Shoot` with normal conditional sequences.

> **[Behavior Tree in Unreal Engine - Overview | Unreal Engine 5.5 Documentation |...](https://dev.epicgames.com/documentation/en-us/unreal-engine/behavior-tree-overview?application_version=4.27)**
>
> Describes the concepts behind Behavior Trees in Unreal Engine and how they differ from traditional Behavior Trees.

I recommend checking out the doc. If you need anything else, just drop a message in the thread!
