s&box docs

public class Sandbox.NetworkingSettings : Sandbox.ConfigData

A class that holds all configured networking settings for a game. This is serialized as a config and shared from the server to the client.

Constructors

Showing 1 constructors

Properties

Showing 6 properties

public bool Sandbox.NetworkingSettings.AutoSwitchToBestHost { get; set; }

Whether to periodically switch to the best host candidate. Candidates are scored based on their average ping and connection quality to all other peers.

public bool Sandbox.NetworkingSettings.ClientsCanDestroyObjects { get; set; }

By default, can clients destroy objects. This can be changed per connection after join.

public bool Sandbox.NetworkingSettings.ClientsCanRefreshObjects { get; set; }

By default, can clients refresh objects. This can be changed per connection after join.

public bool Sandbox.NetworkingSettings.ClientsCanSpawnObjects { get; set; }

By default, can clients create objects. This can be changed per connection after join.

public bool Sandbox.NetworkingSettings.DestroyLobbyWhenHostLeaves { get; set; }

Whether to disband the game lobby when the host leaves.

public float Sandbox.NetworkingSettings.UpdateRate { get; set; }

The frequency at which the network system will send updates to clients. Higher is better but you probably want to stay in the 10-60 range.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.NetworkingSettings

On this page