Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkIdentity.RemoveClientAuthority

public bool RemoveClientAuthority(Networking.NetworkConnection conn);

Parameters

conn The connection of the client to remove authority for.

Returns

bool True if authority is removed.

Description

Removes ownership for an object for a client by its conneciton.

This applies to objects that had authority set by AssignClientAuthority, or NetworkServer.SpawnWithClientAuthority. Authority cannot be removed for player objects.