# Set Boolean from notify event not working

**URL:** <https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 23, 2025, 9:00pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375 "2025-08-23T21:00:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 23, 2025, 9:00pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/1 "2025-08-23T21:00:27Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/3/d035722325f18730cf4f64f2b97429a521f44fd5.png)I have a notify whenever my enemy will attack to tell the player when the attack is coming. I want to make this T/F statement set to true so that it will fire from a different line of code. The notify works just fine and will go all the way to my “Set L to true” but for some reason it doesn’t actually set it to true and keep the value. It will still read false. I’ve debugged it by putting a string after “EvasionalLFinal” and it fires it just fine.

Same with the “Q” key. Upon using Q, it will set “L” to true and keep it. But when using the notify to fire everything, it won’t make “L” true. I’m pretty new to UE5 scripting so please if anyone could help me with this it would be great. I’m just so confused on how it doesn’t make it true even though it will fire off a string and everything. It’s really odd

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/a/c5a80f6840a1c55a692b709d00e1287edf43036c.png)

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

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 24, 2025, 2:41am UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/2 "2025-08-24T02:41:43Z")

</div>

Replicated variables have to be set on the Server.

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 2:55am UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/3 "2025-08-24T02:55:22Z")

</div>

Will try when I get home. Thanks for that!

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 3:07am UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/4 "2025-08-24T03:07:32Z")

</div>

However I will say. I should’ve said it earlier but this variable is ONLY inside my combat component and only exists in there so would server replication even matter for that? I’m only trying to set a variable to true once I fire a notify from my animation.

It works perfectly fine firing anything else but just not setting the variable to either true or false.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [August 24, 2025, 3:27am UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/5 "2025-08-24T03:27:15Z")

</div>

Well you aren’t actually using a notify.

The second image isn’t setting the return to true. Static False.

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 5:28am UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/6 "2025-08-24T05:28:45Z")

</div>

Okay I set the return to true and still nothing changes. Set the variable to replicated as well 😕

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

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 5:31am UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/7 "2025-08-24T05:31:37Z")

</div>

If I put a branch after the variable it will read it being true and not false. Though when I try a branch with it when another event fires, “L” will be false. No other component is changing the value of L at all besides the “Doesn’t work” thing I have set up

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/6/916753a5f332ff22f336bc1e3ea9392a92cd34ea.png)

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 5:20pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/9 "2025-08-24T17:20:11Z")

</div>

I’m just so confused on how a variable being set to true comes out as true but doesn’t actually keep the value of true for other instances. By running any other event in the same blueprint, it will set the value to true and keep it. The notify will set it to true but not keep the value.

---

<div class="post-metadata">

**Author:** ![linda1258](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@linda1258](https://forums.unrealengine.com/u/linda1258)\
**Post date:** [August 24, 2025, 7:22pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/10 "2025-08-24T19:22:43Z")

</div>

It looks like your animation notify is firing, but the boolean isn’t sticking. try switching to an anim notify state, which gives you both a begin and end event perfect for reliably setting a bool to true and then resetting it later. that approach tends to work more consistently than a simple notify.

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 7:46pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/11 "2025-08-24T19:46:07Z")

</div>

Alrighty, will give it a go later. Was going to try a state but I just assumed it would work with a simple notify

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 24, 2025, 9:30pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/12 "2025-08-24T21:30:29Z")

</div>

Yeah, just does the same thing. Was worth a try but still doesn’t keep the value. This is so weird, I don’t understand how a variable being set just gets ignored when an event is calling it from another blueprint. (This picture is inside my enemy blueprint where it receives the notify and calls the set event in my combat component)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/d/edd6e747de6c045df48c853080b817b68e25a234.png)

---

<div class="post-metadata">

**Author:** ![LegendGary](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LegendGary](https://forums.unrealengine.com/u/LegendGary)\
**Post date:** [August 25, 2025, 2:29pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/13 "2025-08-25T14:29:28Z")

</div>

What i understand is…Get Owner is the enemy right? because you use Does object implement interface bpi enemy. so player evade L interface is run on the enemy, not your player.

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 25, 2025, 3:15pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/14 "2025-08-25T15:15:43Z")

</div>

Yes, my enemy is doing the animations and the notify is inside my enemy animations so it needs my enemy’s interface. The thing I’m doing here is calling the interface event from my notify as a message which sends it back to my enemy blueprint which will then fires an event running inside my “BCA Combat” which both my enemies and player are apart of. I will try it the other way to see though

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 25, 2025, 4:06pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/15 "2025-08-25T16:06:25Z")

</div>

Yeah, if I switch it around to my player’s info, it won’t call the notify event. The owner is my enemy so it needs to be my enemy receiving everything to send to my combat component. Thanks for trying to help though!!

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [August 25, 2025, 6:21pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/16 "2025-08-25T18:21:04Z")

</div>

Is bca\_combat an actor component on each char or some third actor somewhere in the level? If each actor has the combat comp, the anim notify should probably call an event named attack\_telegraph or some such (name itself doesn’t matter, would just make it easier to follow logic while debugging 😉 ) and have that event send an interface message to target with a bool and let the interface function on target decide whether to dodge.

As for bool itself not setting, it is set to instance editable, right?

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 25, 2025, 6:35pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/17 "2025-08-25T18:35:07Z")

</div>

BCA\_combat is an actor component that the player and enemy both use. (In their components tab) Also when you say “send an interface message to target with a bool” do you mean create an interface event lets say inside my “Enemy\_info” interface. Add the event from the interface tab of my enemy blueprint event graph and then add the bool in the enemy’s event graph? Currently all my animations for gameplay have been made inside my combat component and my iframes for my evasion are also in there. This is why im trying to set the bool in the combat component so I can tell my evasion if it has roll frames or not.

And for the bool not setting, yes it’s instance editable. It’s such a strange matter since I’d assume setting a bool to a value would keep it’s value in my combat component. It works just fine when I use a debug key inside my combat component, just this event trying to fire it off doesn’t want to keep the value. (you probably already read above but print strings and any other events will fire just fine, setting values however makes them reset to their default value)

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 25, 2025, 6:37pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/18 "2025-08-25T18:37:47Z")

</div>

I’m pretty new to blueprints myself but this is a first for something seeming super simple to not work.

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [August 25, 2025, 7:34pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/19 "2025-08-25T19:34:55Z")

</div>

Yea, add a function to your enemy info interface called Dodge? or something. Implement it as event or function inside the characters, and use message to call it.

Anim bp notify event would be like this:

 ![animnotity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/2/ba26251e39b7dd66791f3584471ef760d381575f.jpeg)

That’s triggered with notify at frame 1 of attack anim.

Then character bp would have something like so:

 ![char_bp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/c/b2c08564c1dd3bcc305eacdab8e770bcced7c1f7.jpeg)

In my case I’m using a master character class which player and NPCs are children of. But you could implement the dodge event differently on every char who uses the interface and give it more logic than just jump lol.

May also want more logic in telegraph event like distance to target so it doesn’t warn a player who’s off in Ohio somewhere..

---

<div class="post-metadata">

**Author:** ![denberZ1507](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@denberZ1507](https://forums.unrealengine.com/u/denberZ1507)\
**Post date:** [August 25, 2025, 7:54pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/20 "2025-08-25T19:54:22Z")

</div>

Makes sense. How did you get this “AnimNotify\_AttackStart” event though? When searching for an event in the anim notify bp I only get casting nodes etc…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/7/867486554a3e649d9d9b9565593d7a25d71ff537.png)

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [August 25, 2025, 8:13pm UTC](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375/21 "2025-08-25T20:13:12Z")

</div>

If you right click an empty spot in an anim bp it should have add anim\_notify\_event options for all notifies on the skele:

 ![notify-event](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/2/ab21b933f63a19eb6aa266ea9257b9c404d7f708.jpeg)

If the notify in your montage wasn’t saved to the skeleton because reasons, untick context sensitive and it should show every notify known to the project.

[Next page](https://forums.unrealengine.com/t/set-boolean-from-notify-event-not-working/2650375.md?page=2)
