# GetLifeTimeReplicatedProps overrides

**URL:** <https://forums.unrealengine.com/t/getlifetimereplicatedprops-overrides/76770>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 24, 2016, 9:56pm UTC](https://forums.unrealengine.com/t/getlifetimereplicatedprops-overrides/76770 "2016-10-24T21:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShirtyKezRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Post date:** [October 24, 2016, 9:56pm UTC](https://forums.unrealengine.com/t/getlifetimereplicatedprops-overrides/76770/1 "2016-10-24T21:56:05Z")

</div>

I have a question regarding GetLifeTimeReplicatedProps.

Can you change conditions for replication for subclasses? Is this supported? If so what is the intended way to go about this?  
Do i need to bypass parent which defines replication condition? Or should I just call up the tree with Super?

Also I would be interested in knowing where this is called in code, I can’t seem to find it.

Edit: So I found DOREPLIFETIME\_CHANGE\_CONDITION, I’m assuming this is what is intended to be used? I am assuming I can safely call Super with this?

---

<div class="post-metadata">

**Author:** ![ShirtyKezRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Post date:** [October 24, 2016, 10:48pm UTC](https://forums.unrealengine.com/t/getlifetimereplicatedprops-overrides/76770/2 "2016-10-24T22:48:56Z")

</div>

Okay, so with further investigation I have found some things out, this is how I understand some of these macros.

In UnrealNetwork.h, we have:  
DOREPLIFETIME\_CHANGE\_CONDITION - This is to change replication condition for subclasses  
DOREPLIFETIME\_ACTIVE\_OVERRIDE - This can be used in the PreReplication method to actively (gameruntime) customize conditions, I am assuming this still takes into account what was set in GetLifetimeReplicatedProps if the condition is true?  
DOREPLIFETIME\_CONDITION\_NOTIFY - Allows to set notify to run always even if client value is the same as replicated ( this is interesting because it seems to imply that OnRep functions will not be called if value is changed on client prereplication and the value is the same as what has been sent down by server?  
DOREPLIFETIME\_DIFFNAMES - This one I am not quite clear on…?

So the DOREPLIFETIME\_CHANGE\_CONDITION is what I wanted. I am assuming I can use this to also change parent LifetimeProperty that was not set to a condition? Looks that way…  
I am still not sure where GetLifeTimeReplicatedProps is called in code, the main reason I wanted to know is if this is done once only, I got my reply from this post → [Network Tips and Tricks - Unreal Engine](https://www.unrealengine.com/blog/network-tips-and-tricks), which says the information is baked as early as possible.

---

<div class="post-metadata">

**Author:** ![NorthRockStudios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/northrockstudios/32/925918_2.png) [@NorthRockStudios](https://forums.unrealengine.com/u/NorthRockStudios)\
**Post date:** [August 19, 2024, 9:31pm UTC](https://forums.unrealengine.com/t/getlifetimereplicatedprops-overrides/76770/3 "2024-08-19T21:31:50Z")

</div>

Just a heads up for anyone looking up how to override inherited DOREPLIFETIME() variables, you now have to use one of the following.

```auto
RESET_REPLIFETIME()
RESET_REPLIFETIME_CONDITION()
RESET_REPLIFETIME_FAST()
RESET_REPLIFETIME_CONDITION_FAST()
RESET_REPLIFETIME_FAST_STATIC_ARRAY()
RESET_REPLIFETIME_WITH_PARAMS()

```

The rest of the potential overrides (Resets) can be found at line 453 in UnrealNetwork.h as of 5.4.2
