# Behavior tree task logic help

**URL:** <https://forums.unrealengine.com/t/behavior-tree-task-logic-help/20712>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 9, 2015, 11:55pm UTC](https://forums.unrealengine.com/t/behavior-tree-task-logic-help/20712 "2015-02-09T23:55:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil555](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phil555](https://forums.unrealengine.com/u/Phil555)\
**Post date:** [February 9, 2015, 11:55pm UTC](https://forums.unrealengine.com/t/behavior-tree-task-logic-help/20712/1 "2015-02-09T23:55:38Z")

</div>

I’ve been trying to figure out how I would go about playing an animation montage using a behavior tree task.  
As of now I have the character moving towards a certain location in the behavior and when he reaches that location a new task needs to be triggered playing an animation montage.  
The montage will consist of 3 states, sitting down, sitting idle and standing back up. The task needs to loop the sitting part of the montage until it is time to stand back up again. Any advice on creating a task such as this inside the behavior tree?  
Any help will be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Fen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fen/32/635651_2.png) [@Fen](https://forums.unrealengine.com/u/Fen)\
**Post date:** [February 10, 2015, 8:04am UTC](https://forums.unrealengine.com/t/behavior-tree-task-logic-help/20712/2 "2015-02-10T08:04:21Z")

</div>

Hello,  
Here are two links to behavior tree,( in case of)  
[https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/](https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/)

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

For your anim montage, as all anims, use bool conditions like in charachter (passing from character bp to anim bp.

---

<div class="post-metadata">

**Author:** ![SwordsKeyboard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SwordsKeyboard](https://forums.unrealengine.com/u/SwordsKeyboard)\
**Post date:** [August 30, 2015, 9:18pm UTC](https://forums.unrealengine.com/t/behavior-tree-task-logic-help/20712/3 "2015-08-30T21:18:34Z")

</div>

> [@Fen;219312](#):
>
> Hello,  
> Here are two links to behavior tree,( in case of)  
> [https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/](https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/)  
> [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Blueprint_Behavior_Tree_Tutorial)  
> For your anim montage, as all anims, use bool conditions like in charachter (passing from character bp to anim bp.

hey you an example of “For your anim montage, as all anims, use bool conditions like in charachter (passing from character bp to anim bp.”
