s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Common Structs
Line
chevron_left Common Structs
struct
Line

Properties

data_objectCurrentWordIndexdata_objectSounddata_objectTimedata_objectTrack
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 .
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter