# ForceSuccess decorator doesn't function properly on SimpleParallel node

**URL:** <https://forums.unrealengine.com/t/forcesuccess-decorator-doesnt-function-properly-on-simpleparallel-node/369728>\
**Category:** AI\
**Tags:** Behavior-Tree, fyi, unreal-engine, question\
**Created:** [September 7, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/forcesuccess-decorator-doesnt-function-properly-on-simpleparallel-node/369728 "2016-09-07T20:47:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 7, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/forcesuccess-decorator-doesnt-function-properly-on-simpleparallel-node/369728/1 "2016-09-07T20:47:40Z")

</div>

So basically this is best explained by a picture:

![106087-parallel.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/6/036ab0a09ca90a0e7c623901af36dd36e499d852.png)

So if “CircleAroundTarget” fails this sequence will fail and loop and stay in the first node of the sequence forever.  
If I change that first node from a parallel to a selector or just a bare task and use the ForceSuccess then everything works fine.

Also if I alter the behaviour of CircleAroundTarget so that it never can fail (and always returns Succeeded internally) then the sequence will work properly and move to the next node,

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 7, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/forcesuccess-decorator-doesnt-function-properly-on-simpleparallel-node/369728/2 "2016-09-07T20:47:42Z")

</div>

This bug was recently fixed. Check latest revision of BTCompositeNode.cpp file (#4) on //UE4/Main, or just modify `UBTCompositeNode::OnChildDeactivation` function by moving `NotifyDecoratorsOnDeactivation` call to the end.

---

<div class="post-metadata">

**Author:** ![Answers.Archive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Answers.Archive](https://forums.unrealengine.com/u/Answers.Archive)\
**Post date:** [September 7, 2016, 8:47pm UTC](https://forums.unrealengine.com/t/forcesuccess-decorator-doesnt-function-properly-on-simpleparallel-node/369728/3 "2016-09-07T20:47:43Z")

</div>

Awesome - thanks for the quick response Lukasz.
