# "On value changed" event?

**URL:** <https://forums.unrealengine.com/t/on-value-changed-event/1164770>\
**Category:** Blueprint\
**Tags:** variables, float, unreal-engine, nodes, Blueprint, question\
**Created:** [May 13, 2023, 7:13pm UTC](https://forums.unrealengine.com/t/on-value-changed-event/1164770 "2023-05-13T19:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 13, 2023, 8:50pm UTC](https://forums.unrealengine.com/t/on-value-changed-event/1164770/4 "2023-05-13T20:50:35Z")

</div>

I understand! Refactoring can definitely be a pain later in a project! Though if you are intending to maintain the project it might save you a major headache in the future to do it before it gets too big, as tech debt can be painful!

Though, according to this post, if your game isn’t multiplayer (and not going to be) you could use the rep notify feature which is basically the same thing, but made for multiplayer replication. Delegates are also a possibility, but that’d also mean you’d have to go back and refactor the same way anyway.

> [@Cast event when (Variable change)](https://forums.unrealengine.com/t/cast-event-when-variable-change/415961/6):
>
> For those who, like me, are faced with this task, I can recommend the following tipping_hand_man If you are developing a singleplayer game, you can use the RepNotify for Replication setting of the varible and use generated OnRep\_ function to call the event on the varible change. This method works in single mode [because](https://docs.unrealengine.com/5.0/en-US/networking-overview-for-unreal-engine/#networkmodesandservertypes) Standalone: The game is running as a server, that does not accept connections from remote clients. Any players participating in the game are strictly local players. This mod…

---

_[View the full topic](https://forums.unrealengine.com/t/on-value-changed-event/1164770)._
