# RepNotify triggers even when setting variable to the same value?

**URL:** <https://forums.unrealengine.com/t/repnotify-triggers-even-when-setting-variable-to-the-same-value/2677046>\
**Category:** Blueprint\
**Tags:** unreal-engine, Multiplayer, Blueprint, question\
**Created:** [November 20, 2025, 7:25pm UTC](https://forums.unrealengine.com/t/repnotify-triggers-even-when-setting-variable-to-the-same-value/2677046 "2025-11-20T19:25:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NaiKo1511](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NaiKo1511](https://forums.unrealengine.com/u/NaiKo1511)\
**Post date:** [November 20, 2025, 7:25pm UTC](https://forums.unrealengine.com/t/repnotify-triggers-even-when-setting-variable-to-the-same-value/2677046/1 "2025-11-20T19:25:19Z")

</div>

I’m working on a Blueprint in Unreal Engine with a RepNotify variable. I thought that if you set a variable to its current value (i.e., it doesn’t actually change), it wouldn’t re-trigger the RepNotify function on the server (listen server).

However, it looks like in my case it _does_ trigger again.

Am I misremembering how RepNotify works, is this expected behavior?

Example:  
I went into my Player Character Pawn and created a boolean variable. I didn’t touch anything else, just added a Print String in the OnRep function. When I play the game and press Z several times on the server, the print executes every time (on the server, once on client), even though the variable isn’t actually changing.

 ![repnotifyIssue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/7/567b415aea72fc09d8de4fa830b7aa26a97dd009.jpeg)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [November 20, 2025, 7:36pm UTC](https://forums.unrealengine.com/t/repnotify-triggers-even-when-setting-variable-to-the-same-value/2677046/2 "2025-11-20T19:36:40Z")

</div>

> [@NaiKo1511](#):
>
> er, it looks like in my case it _do_

You need to be setting the replicated value on the server

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/2/da23b778c238ac5da59f5eb5193ada6c66a83d12.png)

It will then keep setting it on the server, but only change it on the client once

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/2/f52e6c1276e9757fc860afebb8528e40a2dd07b1.png)  
As you can see it sets on the server first, then replicates to the client.  
On subsequent key presses the client no longer prints

---

<div class="post-metadata">

**Author:** ![NaiKo1511](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NaiKo1511](https://forums.unrealengine.com/u/NaiKo1511)\
**Post date:** [November 20, 2025, 8:12pm UTC](https://forums.unrealengine.com/t/repnotify-triggers-even-when-setting-variable-to-the-same-value/2677046/3 "2025-11-20T20:12:28Z")

</div>

Sorry for the confusion, it was just a quick set up to show what happened on var change on the server side specifically. As you say, the clients shouldn’t modify the replicated variable themselves, but rely on a ROS RPC custom event instead.

My surprise was on the rep notify function triggering multiple times on the server without the value really changing there.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [November 20, 2025, 8:54pm UTC](https://forums.unrealengine.com/t/repnotify-triggers-even-when-setting-variable-to-the-same-value/2677046/4 "2025-11-20T20:54:39Z")

</div>

The value is being set each key press, it’s just not re-transmitted to clients to save bandwidth.  
You could cache the state on the server and then do a check

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/9/b095e984a71e815d6e54467fa48adb53de28efd2.png)

Enum

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/2/cb24c8dba698b1a03391ba614f8edf846dd5ff15.png)

Maybe there might be some extra settings in the input action to filter this out.  
Setting it to “Pressed” will reduce it down to 1 fire per key press.
