# Behavior tree becomes inactive when GameMode logic runs

**URL:** <https://forums.unrealengine.com/t/behavior-tree-becomes-inactive-when-gamemode-logic-runs/451741>\
**Category:** Blueprint\
**Tags:** Behavior-Tree, run-behavior, unreal-engine, twin-stick, question, Blueprint\
**Created:** [July 5, 2019, 9:33am UTC](https://forums.unrealengine.com/t/behavior-tree-becomes-inactive-when-gamemode-logic-runs/451741 "2019-07-05T09:33:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4accb68b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4accb68b](https://forums.unrealengine.com/u/anonymous_user_4accb68b)\
**Post date:** [July 5, 2019, 9:33am UTC](https://forums.unrealengine.com/t/behavior-tree-becomes-inactive-when-gamemode-logic-runs/451741/1 "2019-07-05T09:33:51Z")

</div>

Hello,

I am undertaking a course where I try to create a simple twin stick top down shooter prototype. I have scripted the enemy logic including its AI as intend. It runs to the character and starts attacking it. It works whenever I add the model to the level by drug and drop. However, when I scripted the enemy’s respawn logic using TargetPoint class it passes but a respawned enemy doesn’t have an active behavior tree so it doesn’t move.

Enemy AI script: [Screenshot - 652c7b1aab7a4395c9c60466d93500af - Gyazo](https://gyazo.com/652c7b1aab7a4395c9c60466d93500af)

Respawn sequence: [Screenshot - 81ceff6b07b88454b774a2dffcae475a - Gyazo](https://gyazo.com/81ceff6b07b88454b774a2dffcae475a)

The tree: [Screenshot - 97d14746953f20e38867a4b75bd895ee - Gyazo](https://gyazo.com/97d14746953f20e38867a4b75bd895ee)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4accb68b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4accb68b](https://forums.unrealengine.com/u/anonymous_user_4accb68b)\
**Post date:** [July 5, 2019, 2:11pm UTC](https://forums.unrealengine.com/t/behavior-tree-becomes-inactive-when-gamemode-logic-runs/451741/2 "2019-07-05T14:11:04Z")

</div>

I am sorry but screens haven’t loaded proper;y. Here they are

Enemy’s logic

> **[Gyazo](https://gyazo.com/652c7b1aab7a4395c9c60466d93500af)**
>
> Record screenshots and videos that are ready to share instantly. Cut time spent in meetings and chats with async visual communication.

Respawn activation logic

> **[Gyazo](https://gyazo.com/81ceff6b07b88454b774a2dffcae475a)**
>
> Record screenshots and videos that are ready to share instantly. Cut time spent in meetings and chats with async visual communication.

The tree

> **[Gyazo](https://gyazo.com/97d14746953f20e38867a4b75bd895ee)**
>
> Record screenshots and videos that are ready to share instantly. Cut time spent in meetings and chats with async visual communication.
