How to update ragdol in Photon Unity Networking

Hello, everyone i have problem with sync character

        foreach(Rigidbody element in rigiBodyArray)
        {
            element.isKinematic = false;
        } 

        myPlayer.GetComponent<CharacterController>().enabled = false;
        myPlayer.GetComponent<FPSInputController>().enabled = false;
        myPlayer.GetComponent<MouseLook>().enabled = false;
        myPlayer.GetComponent<Character3rd>().enabled = false;
        myPlayer.GetComponent<CameraMenuMove>().enabled = false;
        myPlayer.GetComponent<CharacterMotor>().enabled = false;
        myPlayer.GetComponent<Animator>().enabled = false;

How can i update player information and send to other player i don’t idea to create RPC

Thank you for answer

A quick note/sanity check (not solution) As ragdolls typically do not affect gameplay I suggest not synching them at all and just keeping each ragdoll a locally simulated body.

This is the general case for all non-gameplay impacting features across the network in most games, example would be particle systems (they’re spawned across the network but only exist on the client with no further synching).

1 Like

if I do not sync do it, the player will be standing all the time

You need to disable the code, that reads the incoming updates for a networked object, when you want the ragdoll system to take over. It should be similar to how you do it in singleplayer: Once a character is animated as ragdoll, you’d turn off the controller, right?