Why child actor component cannot run on server?


This is actor that set child actor component in character blueprint.
If I run this code it’s only print on client.
I want to run this code on server.
How can I do that?

make sure its replicated of course and where is it spawned?

also you wont need the server call just use a switch has authority on beginplay

The parent actor is replicated. If you’re talking about child components, I don’t know how to turn on replication.

the child actor is an actor so itll need its own replication i think, or if you mean actor components they also need replication turned on if youre replicating any values,
you set replication on the same way you did in the parent

image
You mean this in child actor component?

there should be another box that just says replicates

image
this?

yep does it help? also how is the actor spawned and who owns it?

actor owner is character blueprint
image
I spawn this with child actor component