s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Network
Connection
DisplayName
chevron_left Network
class
Connection

Constructors

lockConnection

Properties

data_objectAddressdata_objectAimAnglesdata_objectCanDestroyObjectsdata_objectCanRefreshObjectsdata_objectCanSpawnObjectsdata_objectConnectionTimedata_objectDisplayNamedata_objectFriendInfodata_objectIddata_objectIsActivedata_objectIsConnectingdata_objectIsDedicatedServerdata_objectIsHostdata_objectLatencydata_objectMessagesRecieveddata_objectMessagesSentdata_objectMouseDeltadata_objectMouseWheeldata_objectNamedata_objectOwnerSteamIddata_objectPartyIddata_objectPingdata_objectStatsdata_objectSteamIddata_objectTime

Methods

functionsDistanceSquaredfunctionsDownfunctionsGetAnalogfunctionsGetUserDatafunctionsHasInventoryItemfunctionsHasPermissionfunctionsKeyDownfunctionsKeyPressedfunctionsKeyReleasedfunctionsKickfunctionsPressedfunctionsReleasedfunctionsSendLogfunctionsSendMessagefunctionsSendRequestfunctionsSendResponse

Static Properties

data_objectAlldata_objectHostdata_objectLocal

Static Methods

functionsFind
DisplayName
The player's name but with any potential nicknames or naughty words filtered out. You don't want to be using this in serverside logic really.
property
string DisplayName { get; set; }
Declared in Sandbox.Connection ยท Assembly Sandbox.Engine
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