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
gamejams
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
Get s&box
Sign in with Steam
Api
Classes
SpeechOptions
chevron_left Classes
struct
SpeechOptions

Properties

data_objectDurationdata_objectLookAtdata_objectPrioritydata_objectRadiusdata_objectSubtitledata_objectTags
SpeechOptions
How an NPC says a line: how long it lasts, who it looks at, and how the line coordinates with the speech of the NPCs around it. Anything left unset has the default described on it.
struct Sandbox.Npcs.Layers .
sealedSandbox.Engine

data_object Properties 6

Duration
Nullable`1
How long the line lasts, in seconds. Null for its natural length: a sound's own, or three seconds for a line of text. A sound whose length is known always lasts that long.
LookAt
GameObject
Who the NPC looks in the eyes while it talks.
Priority
int
Admission and interruption priority among the speech around it. 1000 unless set.
Radius
float
Distance within which the line coordinates with other NPC speech. 1500 unless set.
Subtitle
string
Text to show while a sound plays. A line of text is its own subtitle.
Tags
TagSet
Tags describing the line and the cooldown groups it shares.
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