UnityMultiplayerPlayground icon indicating copy to clipboard operation
UnityMultiplayerPlayground copied to clipboard

The random position spawn is not working

Open Ninhow opened this issue 3 years ago • 2 comments

The client is not positioning the player in a random position. Also when I connect the clients the location is not correct on all clients and the server. I have the same code.

Ninhow avatar Jan 15 '22 23:01 Ninhow

I'm just starting Dilmer's playlist for Multiplayer now, and discovered the same after the first 2 videos. I've been able to fix this with a few changes to 'PlayerControl.cs', but am hesitant to submit a PR yet, since I've not finished the rest of his series. For now, I've got this repo forked, and you can take a look at the change here:

rodellison avatar Jan 21 '22 17:01 rodellison

You can solve that by adding a Connection Approval callback where you decide the waypoints.

Ninhow avatar Jan 26 '22 11:01 Ninhow