AActor::IsNetRelevantFor

Override Hierarchy

Syntax

virtual bool IsNetRelevantFor
(
    const AActor * RealViewer,
    const AActor * ViewTarget,
    const FVector & SrcLocation
) const

Remarks

Checks to see if this actor is relevant for a specific network connection

Returns

bool - true if this actor is network relevant to the client associated with RealViewer

Parameters

Parameter

Description

RealViewer

is the "controlling net object" associated with the client for which network relevancy is being checked (typically player controller)

ViewTarget

is the Actor being used as the point of view for the RealViewer

SrcLocation

is the viewing location

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/ActorReplication.cpp