Hi all,
I’ve been plagued with this problem for some time now and it’s a real show stopper. Any help would be greatly appreciated.
My character pawn’s visibility seems to randomly turn on/off dependant on position.
bAlwaysRelevant is true and I’ve tried overriding IsNetRelevantFor to brute force its relevancy, which doesn’t seem to help:
bool ARavCharacter::IsNetRelevantFor(const AActor* RealViewer, const AActor* ViewTarget, const FVector& SrcLocation) const
{ return true;
}
On tick I log spam the skel mesh’s visibility, which changes correctly (you can see it in the video)
Where it gets even worse is when you’re in a vehicle and this happens to your own character. As you drive arround, your attached/seated character turns on/off and when it’s off you have no pawn to occupy and leaving the vehicle becomes impossible.
The character is basically a copy/paste of the shootergame’s character with added functionality for sitting in vehicles (sets collisions to ignore vehicles, etc…), and carrying objectives (like ctf).
In the video you can see that when it disappears, the movement seems to dead reckon until it becomes visible again, which snaps it…
Any ideas?
-Ken