#PlayerCharacter with children scripts

12 messages · Page 1 of 1 (latest)

upbeat ingot
#

i made a little screenshotdrawingsketch kind of thing lol

viral basalt
#

#🍭general message

#

I recommend making your own network behaviour script
Disable unitys non networked scripts by default on prefab
Enable them if local player (or has authority)

upbeat ingot
#

Well yeah, but i have a issue with the cinemachine cameras, they are off by default but as soon the second one joins, they all transfer towards the last joined player cam

#

this is my player script, but the cameras are acting weird

http://pastie.org/p/1VmicXQkHX65nkwf7ett0v

the second joined player does NOT see the original host/player
the second joined player can NOT move, even tho everything is enabled on their respective prefabs

#

what the HOST sees

#

wat the client sees:

#

client should see the host aswell as it is infront of it
client cant move, look around etc, but everything is enabled for the client....

#

(looks like client to host doesnt work, also with a NetworkTransform it doesnt do anything :/ )

#

(fixed the players not seeing each other heh ) just still cant move the newest joined client

#

even added a

    private void Start()
    {
        if (!isLocalPlayer)
        {
            Destroy(playerCamera.gameObject);
            Destroy(virtualCamera.gameObject);
            Destroy(brain.gameObject);
        }
    }

so the other clients wont have the cinemachine of the others, still cant move or anything :/ cant move and cant look around as client