# Child actor component has authority on client

**URL:** <https://forums.unrealengine.com/t/child-actor-component-has-authority-on-client/309716>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, child-actor-componen, authority, unreal-engine, Multiplayer, question, CPP\
**Created:** [March 7, 2015, 1:18am UTC](https://forums.unrealengine.com/t/child-actor-component-has-authority-on-client/309716 "2015-03-07T01:18:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![my\_polaris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@my\_polaris](https://forums.unrealengine.com/u/my_polaris)\
**Post date:** [March 7, 2015, 1:18am UTC](https://forums.unrealengine.com/t/child-actor-component-has-authority-on-client/309716/1 "2015-03-07T01:18:07Z")

</div>

Hi,

UE 4.6.1

I noticed that a child actor component is never replicated. For a test, I Created a parent actor class and a child actor class, then I set the child actor class as the child actor component or the parent actor class. I added some logging in the PostInitializeComponents of both parent and child actors and here is what I got:

On the server:  
LogHSM:Display: Parent Has Authority 1  
LogHSM:Display: Child Has Authority 1

On the client:  
LogHSM:Display: Parent Has Authority 0  
LogHSM:Display: Child Has Authority 1

I found no way around this, until I changed engine code as follows in childactorcomponent.h:

virtual bool ReplicateSubobjects(class UActorChannel \*Channel, class FOutBunch \*Bunch, FReplicationFlags \*RepFlags) override { return true; }

After this change I got the expected output:

On the server:  
LogHSM:Display: Parent Has Authority 1  
LogHSM:Display: Child Has Authority 1

On the client:  
LogHSM:Display: Parent Has Authority 0  
LogHSM:Display: Child Has Authority 0

Obviously this was a test change. One way is probably to derive from UChildActorComponent and override the function  
ReplicateSubobjects, but it seems I need to do this in the engine (in the game dll symbols of UChildActorComponent are not external to the engine.)

Is this the only way I can have child actor components replicated?

Or am I missing something?

Thanks,
