Spawn Actor multiplayer problem

Guys im trying to spawn a vehicle in my multiplayer game but whatever i do i have problem with clients . server can spawn the vehicle and get in the car and everything but whenever server spawn the vehicle or client spawn it i have problem . i tried get all actor of class vehicle and count the length by client and i realized that client actually knows when server or any client spawned a vehicle but there is no vehicle in client screen. i’ve tried multicast , run on server/client
calling server and then multicast etc

I just created a simpler model in new project to show you so that its easily understandable and the problem still exist

alt text

this is the exact thing that happens its very short please watch it

I tried this one as well but look im sure the problem is with collision , i disabled the vehicle collision and it spawned it correctly for both , can you do me a favor please ? create a vehicle and wheels and all that stuff and try to spawn it i think there is something with vehicle collision because if i just change collision presets from vehicle to anything else the problem will be fixed but as long as its not vehicle the wheels don’t work

and BTW thanks a billion for your help and your time

You should call Spawn via Server call. Make sure it is set to Reliable. Then Server and all Clients should see it.

Yes that is exactly what I’ve done but look at this the left one is the server the right one is the client and in should spawn the vehicle by pressing enter but it happens on server and it also happened on client but its like the car collide with something and shoot away

Can you post your BP graph? You are probably using a location that is not replicated on server and client.

You are missing a screenshot on how you use the SpawnActor?

As expected, your Spawn Location isn’t replicated correctly. Instead of accessing that variable from the class, pass it to the Server event instead, see what I did below:

  1. Spawning 500cm in front of the Player

  1. Server and Client without spawning yet

  1. Server tries to spawn in front of him

  1. Restart game and then Client tries to spawn in front of him

As you can see above, wolf is spawned around 500 cm in front of whoever spawned it.

Can you upload your project somewhere so I could take a look at?

sure

/10chars

ok hang on please

sorry for taking long time i created a fresh project and kept everything as simple as possible i’m uploading the file its only 50 mb just check the ThirdPersonCharacter blueprint the vehicle will spawn by pressing Enter and make sure you are in a place that vehicle can be spawned

i’ll send the link in a few minutes

Got it. Will reply in few minutes.

So I tried your project and experiences the same issues you have. Tried to tinker some things but to no avail.

And then I tried to make a VehicleAdvanced project and made a Spawn vehicle via Server and it works just fine. Here’s the one I made: https://mega.nz/#!bGph3QKC!cgERwypH6oX5FdrZbJ7eY_aKrhL3RlAZ-BUV_4u1c04

I think there’s an issue either on the importing or the Physics setup. Unfortunately I’m not expert on it so I can only suggest if you can somehow compare your project with VehicleAdvanced and see what causes the issue.

EDIT: Also, when I tried to change the Mesh of your vehicle from GC to ThirdPerson, it spawns just fine. So as you believe, its probably on the vehicle physics setup itself.

Thanks man

Thanks it helped a lot i will compare the vehicle and also i’ll try other vehicles and i’ll let you know if i found out anything