APawn::IsNetRelevantFor

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

Windows
MacOS
Linux

Override Hierarchy

AActor::IsNetRelevantFor()

APawn::IsNetRelevantFor()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h

Include

#include "GameFramework/Pawn.h"

Source

/Engine/Source/Runtime/Engine/Private/Pawn.cpp

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss