s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Classes
NetworkingSettings
chevron_left Classes
class
NetworkingSettings

Constructors

functionsNetworkingSettings

Properties

remove_circleAutoSwitchToBestHostdata_objectClientsCanDestroyObjectsdata_objectClientsCanRefreshObjectsdata_objectClientsCanSpawnObjectsdata_objectDestroyLobbyWhenHostLeavesdata_objectUpdateRate
NetworkingSettings
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.
class Sandbox .account_tree extends ConfigData
Sandbox.Engine

build Constructors 1

NetworkingSettings ()

data_object Properties 6

AutoSwitchToBestHost
obsoletebool
No longer does anything. The host only changes when the current host leaves.
ClientsCanDestroyObjects
bool
By default, can clients destroy objects. This can be changed per connection after join.
ClientsCanRefreshObjects
bool
By default, can clients refresh objects. This can be changed per connection after join.
ClientsCanSpawnObjects
bool
By default, can clients create objects. This can be changed per connection after join.
DestroyLobbyWhenHostLeaves
bool
Whether to end the game when the host leaves. By default the host hands the game to another player when they leave, and everyone carries on from a snapshot of the game. Anything a late joiner would see correctly survives the handoff.
UpdateRate
float
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.

Inheritance

ConfigData
NetworkingSettings
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter