Replicated component properties do not support COND_Custom .
I want to use DOREPLIFETIME_ACTIVE_OVERRIDE and COND_Custom on a replicated component property.
I'm hoping if I make a version of PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker) on actor component and call it from the components actor it will work, but was wondering why this doesnt exist in the first place.
The DOREPLIFETIME_ACTIVE_OVERRIDE macro seems to lookup the correct replicated property by class type so it seems like it should work.
edit: I've verified you need a custom or extended IRepChangedPropertyTracker for each component that needs conditional replicated variables. This is a huge lack of a feature for networked components.
Yes, this is something we have slated to fix for 4.8. In the mean time, what you are doing should work, you'll just need to make sure you cal calling FindOrCreateRepChangedPropertyTracker for each component:
Component->PreReplication( *GetDriver()->FindOrCreateRepChangedPropertyTracker( Component ).Get() );
answered Feb 12 '15 at 06:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here