Actors attached to vehicle are not seen by late joined clients

While using vehicles when I enter one client into the vehicle and then another client joins the game the player within the vehicle is not visible to this client.

This issue doesn’t occur when the client is already in the game.
Furthermore this issue gets resolved if the client exits and reenters the vehicle after the new client has joined in.

Basically it seems that the Replication when a new client joins the game hides the players skeletal mesh from this client.

Note: when entering the vehicle the player is made a child of the vehicle.

When a client character enters the vehicle are you hiding any the the components?

Hey Kronos623, No I am not hiding any components that I am aware of, all I do is disable all physics change the animation to be in sitting state and then move the actor to be child object of vehicle, then switch the controller to posses the vehicle.

I use repnotifies for this kind of situation. Perhaps a bool variable “isInsideVehicle” that the server changes. The rest is done inside the notify function. (In your case, disable physics, set sitting animation and so on). The repnotify should guarantee that things in the function get called, when a client joins the game after the function was called in the first place. I did that recently with some torches that can be lit.

Hope that helps.

Cheers - Lord7even

Hi Lord7even, I was able to final fix this issue, turns out it was nothing to do with animations or the skeletal mesh but just that the movement components tick was getting rest to true and the replicated actor would just fall in the world.

But thanks for the reply