s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
SpeechOptions
chevron_left
Classes
struct
SpeechOptions
Properties
data_object
Duration
data_object
LookAt
data_object
Priority
data_object
Radius
data_object
Subtitle
data_object
Tags
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
.
sealed
Sandbox.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.