s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Common Structs
Line
chevron_left
Common Structs
struct
Line
Properties
data_object
CurrentWordIndex
data_object
Sound
data_object
Time
data_object
Track
Line
A subtitle line being spoken right now - a playing sound's subtitle track sampled at its playback time. Get these from Sandbox.SubtitlesGameObjectSystem.GetActive(System.Collections.Generic.List{Sandbox.SubtitlesGameObjectSystem.Line}).
struct
Sandbox.SubtitlesGameObjectSystem
.
sealed
Sandbox.Engine
data_object
Properties
4
CurrentWordIndex
int
Index into Sandbox.SubtitleTrack.Words of the latest word to have started, or -1 before the first word. Words up to here have been spoken - that's the karaoke highlight.
Sound
SoundHandle
The sound speaking this line, or null for subtitles injected with Sandbox.SubtitlesGameObjectSystem.Show(System.String,System.Single). May have finished - lines hang around for a moment after their sound ends.
Time
float
How far into the line we are, in seconds - the sound's playback time, or time since Sandbox.SubtitlesGameObjectSystem.Show(System.String,System.Single) for injected subtitles.
Track
SubtitleTrack
The line's subtitle track.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.