Skip to content

Change object authority after initialization #2698

@kevincastejon

Description

@kevincastejon

I try to change the authority mode for client's players objects after they got initialized.
I use the ClientNetworkTransform sample script that overrides the OnIsServerAuthoritative() method to return the right boolean value for switching between authority modes. But it seems to work on initialization only... Here is my case:

  • Create a server
  • Connect to it with a client while its PlayerObject has a script overriding OnIsServerAuthoritative and makes it return true
  • Later, change the value return by this same overriden method to make it return false
  • Movement should be now client-driven but they are not, even by switching the Rigidbody back to non-kinematic

Is it a way to change a player's object authority mode AFTER its initialization?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:supportQuestions or other support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions