# Custom event signal goes right through Branch while it should be blocked

**URL:** <https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912>\
**Category:** Character & Animation\
**Tags:** boolean, custom-event, ignore, branch, unreal-engine, question\
**Created:** [August 22, 2016, 2:36pm UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912 "2016-08-22T14:36:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BdeJong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BdeJong](https://forums.unrealengine.com/u/BdeJong)\
**Post date:** [August 22, 2016, 2:36pm UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912/1 "2016-08-22T14:36:05Z")

</div>

Hi Guys,

I’ve got a piece of code that is called using a custom event. A branch in between code and event controls whether or not to execute it or not. For reference i added the image below, my code is the print in the image.

Now the strange thing: The custom event pulse goes right through the branch when the bool variable is set to false… To check the branch i added a keyevent, which is properly blocked at the branch. I really need a custom event to do this, and it seems likely that it should be possible to do so?

Does anybody know whats going on here?

 ![103927-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/4/cb4bb607306f7684c4b73bbe7496a7d951d96f7d.png)

---

<div class="post-metadata">

**Author:** ![Thebluefish](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thebluefish](https://forums.unrealengine.com/u/Thebluefish)\
**Post date:** [August 22, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912/2 "2016-08-22T15:39:49Z")

</div>

If you put a breakpoint on the Print String block, can you verify that Condition == False?

---

<div class="post-metadata">

**Author:** ![Minimpoun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Minimpoun](https://forums.unrealengine.com/u/Minimpoun)\
**Post date:** [August 22, 2016, 4:15pm UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912/3 "2016-08-22T16:15:40Z")

</div>

What is setting that Bool to true or false?

---

<div class="post-metadata">

**Author:** ![BdeJong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BdeJong](https://forums.unrealengine.com/u/BdeJong)\
**Post date:** [August 23, 2016, 6:53am UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912/4 "2016-08-23T06:53:18Z")

</div>

I’m using a keyevent from my motioncontroller that goes through a FlipFlop, switching between true and false with the usual set nodes. The initial value of the bool is set to true.

---

<div class="post-metadata">

**Author:** ![BdeJong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BdeJong](https://forums.unrealengine.com/u/BdeJong)\
**Post date:** [August 23, 2016, 7:07am UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912/5 "2016-08-23T07:07:54Z")

</div>

A breakpoint confirms its false for the keyevent at the correct time, the custom event goes through and pauses the game even if the bool is true. It always goes through and toggles the breakpoint.

While testing i noticed that when i set the initial value of the bool to false, it works fine for the custom event as well. The problem only occurs when the initial value is true.  
Initially setting the bool to false and then setting it to true on begin play also causes the problem…

---

<div class="post-metadata">

**Author:** ![Mookaroni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mookaroni](https://forums.unrealengine.com/u/Mookaroni)\
**Post date:** [August 23, 2016, 9:27pm UTC](https://forums.unrealengine.com/t/custom-event-signal-goes-right-through-branch-while-it-should-be-blocked/367912/6 "2016-08-23T21:27:08Z")

</div>

> A breakpoint confirms its false for the keyevent at the correct time, the custom event goes through and pauses the game even if the bool is true. It always goes through and toggles the breakpoint.

This doesn’t quite make sense. Do you mean that the custom event goes through and pauses the game, even if the bool is **false**?

Make sure that you’re checking the bool true/false for when the custom event in triggered, and not the keyevent. It seems like you might be accidentally setting the bool to true when you call the custom event.

Also check all instances where the bool is changed from true to false, and make sure there aren’t any unaccounted changes.
