Table of Contents

TransferAuthority

Methods
public bool TransferAuthority(NetworkEntityState state, ClientID clientID, AuthorityType authorityTransferred = AuthorityType.Full)

Give away authority over this entity to another client.

Parameters
Type Name Description
NetworkEntityState state

State of the entity to transfer authority of.

ClientID clientID

Client that should get authority over this entity Can be retrieved from ClientConnections.

AuthorityType authorityTransferred

Type of authority transferred.

Returns
Type Description
bool

if the transfer operation can be started.

Remarks

Requires the client to have authority. Even if the transfer operation can be started, the transfer itself can be rejected.