# Why is everything running instantly in my behavior tree?

**URL:** <https://forums.unrealengine.com/t/why-is-everything-running-instantly-in-my-behavior-tree/1670345>\
**Category:** AI\
**Tags:** Behavior-Tree, EQS, unreal-engine, question, Blueprint\
**Created:** [February 6, 2024, 5:13pm UTC](https://forums.unrealengine.com/t/why-is-everything-running-instantly-in-my-behavior-tree/1670345 "2024-02-06T17:13:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [February 6, 2024, 5:13pm UTC](https://forums.unrealengine.com/t/why-is-everything-running-instantly-in-my-behavior-tree/1670345/1 "2024-02-06T17:13:07Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/8/d587b9bdcd818d21a231244b10ef20bd8d77be10.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/5/1c5f204b731db50f23a717dfd5df621feeb84ba5.jpeg)

I’m trying to make the AI move to the areas that are close to the walls, and after reaching that location, I want it to cover, but in the game, what I see is that the AI right at the beginning is covering, and then he goes to that location. What could be causing this problem?

I have set a location type variable in my blackboard, and I set it to my EQS like this:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/8/2486e79d7568dd965275a58a47b3455543fb5ef7.png)

So that target location is meant to be the location of one of those green spheres, and the AI is trying to move there and then play the cover animation.

Cover Task:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/f/a8f6198216d5ea9ff974b9c48a53e3ff8cd7e03d.png)

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [February 8, 2024, 7:57am UTC](https://forums.unrealengine.com/t/why-is-everything-running-instantly-in-my-behavior-tree/1670345/2 "2024-02-08T07:57:46Z")

</div>

Can somebody say if it is a good or bad idea to play an anim montage inside a task like the way I have done it?
