Hello everyone sorry for the long delay in response. So is what I did…
In your Character class you have a virtual function ’ IsNetRelevantFor(const AActor* RealViewer, const AActor* ViewTarget, const FVector& SrcLocation) ’
You want to over load that. RealViewer refers to the player controller, and ViewTarget refers to the Character. These are what you are doing checks on for relevancy and it’s done on the Server side.
In the cpp of your character class, you first want to do a check of a condition that it must absolutely pass. In my case it was to check if the ViewTarget, or Character, was in the same level as me.
After that, if it passed the first check, you should then call the Super for the regular check. is my code
bool YourCharacter::IsNetRelevantFor(const AActor* RealViewer, const AActor* ViewTarget, const FVector& SrcLocation) const
{
if (Cast<YourCharacter>(ViewTarget)->CurrentLevelStream == CurrentLevelStream)
return Super::IsNetRelevantFor(RealViewer, ViewTarget, SrcLocation);
else
return false;
}
you can do other stuff. I just did a check to see if other players were in the same level stream as me. Anyways thanks for the help and good luck to everyone else!