Sorry, this is a duplicate of a thread I made elsewhere, but I haven’t found an adequate solution to my problem. Not sure if it’s a bug or if I am just not understanding how to accomplish something.
Original thread here : Attaching a player to a player causes jittering in networked game. - C++ - Epic Developer Community Forums
[]
Hi all,
This is pretty much a duplicate of my question here : https://answers.unrealengine.com/que...rs-socket.html
Anyway, I’m trying to carry a player character with another player character. I was hoping it would be as simple as attaching the player to the parent player and disabling movement on the attached player, but I’m having a lot of networking issues. On the client I am getting huge amounts of jitter on the parent player, though the locally owned/attached player moves smoothly as expected. I have tried turning off pretty much everything from disabling movement, turning off physics and collision on everything, disabling tick on the movement component, removing the movement component, and unpossessing the actor, but it still seems to have an unacceptable amount of jitter.
Placing a non-possessed character blueprint in the level seems to work as expected when attached. The player can move around smoothly, and everything seems fine.
My kind of last ditch effort is going to be hiding the player controlled character and spawning a new non-possessed player in the same state, but I’d like to avoid that if possible, because it seems like I should be able to just turn off all the things that are causing the jittering.
Does anybody have any idea what might be causing this?
[/]
And an update from the Answerhub question:
[]
So I’ve tried something new that also doesn’t work. I’m unpossessing the attached player and making him a spectator stuck to the now attached pawn. It is still having huge replication/prediction issues. I was able to add some debug data to show that it’s the attached pawn that appears to be stuttering, not the parent.
I’ve tried doing a similar test with a non-possessed version of my character pawn, and it works as expected on both the client and the server (stays attached to the socket rather than jumping around).
I feel like there must be something I’m missing. What else would be different between a formerly possessed pawn and a pawn that’s never been possessed, and is there a way to make my formerly possessed pawn revert back to that state?
[/]
Even being pointed in the right direction would be great.