AActor::IsWithinNetRelevancyDistance

Determines whether or not the distance between the given SrcLocation and the Actor's location is within the net relevancy distance.

Windows
MacOS
Linux

Syntax

bool IsWithinNetRelevancyDistance
(
    const FVector & SrcLocation
) const

Remarks

Determines whether or not the distance between the given SrcLocation and the Actor's location is within the net relevancy distance. Actors outside relevancy distance may not be replicated.

Returns

True if the actor is within net relevancy distance, false otherwise.

Parameters

Parameter

Description

SrcLocation

Location to test against.

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/ActorReplication.cpp

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback