#Host and client works fine but attempting to add a second client breaks things

1 messages · Page 1 of 1 (latest)

slender cargo
#
  1. I host a game in one window. From here everything works fine, I can move and I can look around.
  2. When I start a new window and start that as a client, my host window uses the new clients camera but it doesnt actually turn it kinda just moves when I move the client window.
  3. The client window works fine and allows for movement and looking. The Host player moves when I move it on the host window, just the camera is using the new clients camera? ( This is a bit weird cause it looks like the client has 2 cameras)

I hope this made sense but heres some extra stuff

Here is my camera script
https://pastie.io/ewwups.cs

Here is my movement script
https://pastie.io/scevnm.cs

For additional context I have a main camera as a child of the player prefab.

#

Some other context but heres my player components
and my camera components

slender cargo
#

Okay im looking at some other help things and it looks like we just disable the cameras from the start and just enable the current local one

#

That worked 🙂

tame tree
slender cargo
#

Would the OnStartAuthority have to be ran then on a game manager? or simply some player script ?

obtuse hinge