Need help for Player Spawning and Player speed control slider!!
Making a Multiple Player game, need help with two issues;
I have made 3 spawn points and set them to Random, also the Registering Game Manager Script has been created, but the Client Still Spawns on top of the existing Local Players Position. If i disconnect and re-connect sometimes it gets the new spawn point, but again spawns on top of the local player.
I have a canvas with the Player Speed Slider, it does not work once the client joins in, neither for the Client nor the local player.
Please help !!
Thanks n Rgds
Answer by XxSimBaaxX · May 26, 2017 at 10:53 AM
The first issue seems to be some script issues with the isLocalPlayer, for the second one, try putting the canvas as an inactive child to the player prefab and having a script to activate it for the local player only and fix its position every frame, try this it worked for me before as every client has his own scripts system I hope that hepled you :)
Hamza Odeh
Answer by mohitsabhi · May 26, 2017 at 11:15 AM
Thanks Hamza for your time and Response!
For isLocalPlayer, i have written this in the PlayerSetup Script, link text
Am not sure about inactive child of the Player, could you please elaborate or show how to do this. Presently it resides under the Player and from the above PlayerSetup I disable the components like Camera and others for the Remote players.
Thanks in advance and await yours.
Brgds
Mohit
Your answer
Follow this Question
Related Questions
uNet Spawning Objects 0 Answers
Setting parent on spawned object Unet 0 Answers
Failed to spawn server object, assetid=... 1 Answer
Unity Photon Handle Match Data 0 Answers
Unet - spawning bullets, two issues 1 Answer