# Movie Add SubTitle (Text)
Grammar — Add sub title title with duration duration at time timeStamp
Flags —Native
|Action
|Restricted
When recording a movie, this function add a subtitle to the movie event file, it will be used at the specified time stamp when the movie is played back. If “timeStamp” is -1, current recording time is used.
# Arguments
text
— Titleint
— Durationint
— TimeStamp
Returns — void
native void MovieAddSubTitleText(
text title,
int duration,
int timeStamp,
);
# Related
Category: Cinematics / Movie
- Movie Start Recording —
void
— MovieStartRecording - Movie Add SubTitle (String) —
void
— MovieAddSubTitle - Movie Add SubTitle (Text) —
void
— MovieAddSubTitleText - Movie Add Trigger Function —
void
— MovieAddTriggerFunction - Movie Stop Recording —
void
— MovieStopRecording - Movie Dynamic Subtitles and Duration —
void
— libNtve_gf_MovieDynamicSubtitlesandDuration - Movie Function —
void
— TriggerAddEventMovieFunction - Movie Started —
void
— TriggerAddEventMovieStarted - Movie Finished —
void
— TriggerAddEventMovieFinished
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2186
// Automatic Variable Declarations
// Implementation
MovieAddSubTitleText((StringExternal("Param/Value/lib_Ntve_1081F0A4") + StringToText(CatalogFieldValueGet(c_gameCatalogSound, lp_soundFile, "AssetArray[" + IntToString(0) + "].Speaker", c_playerAny)) + StringExternal("Param/Value/lib_Ntve_6565C051") + StringToText(CatalogFieldValueGet(c_gameCatalogSound, lp_soundFile, "AssetArray[" + IntToString(0) + "].Subtitle", c_playerAny))), ((1000 * FixedToInt(SoundLengthSync(SoundLink(lp_soundFile, 0)))) + 400), -1);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1870
// Automatic Variable Declarations
// Implementation
MovieAddSubTitleText((StringExternal("Param/Value/lib_Ntve_2790CD6C") + StringExternal(CatalogFieldValueGet(c_gameCatalogSound, lp_soundFile, "AssetArray.Speaker", c_playerAny)) + StringExternal("Param/Value/lib_Ntve_112EB177") + StringExternal(CatalogFieldValueGet(c_gameCatalogSound, lp_soundFile, "AssetArray.Subtitle", c_playerAny))), ((1000 * FixedToInt(SoundLengthSync(SoundLink(lp_soundFile, 0)))) + 400), -1);
}