Thursday, November 17, 2022
HomeGame Developmentnetworking - allow proprietor actor's replication from youngster actor part?

networking – allow proprietor actor’s replication from youngster actor part?


I would like my actor part to activate the mum or dad’s replication when this part is added to it.

I attempted to do that:

void UVolumeTriggerComponent::BeginPlay()
{
    Tremendous::BeginPlay();

    if (!GetOwner()->HasAuthority())
    {
        return;
    }

    GetOwner()->SetReplicates(true);
    GetOwner()->ForceNetRelevant();
}

however now I’ve a number of warnings like this:

LogReplicationGraph: Warning: ::GetGridNodesForActor known as on TriggerVolume_UAID_309C23D29395EF2201_1696126136 when its CullDistance = 0.00. (Have to be > 0)

however I see the replicated information on purchasers.

So, how one can allow the replication correctly with out that warnings?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments