# Movie Add SubTitle (Text)

Grammar — Add sub title title with duration duration at time timeStamp
FlagsNative | 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 — Title
  • int — Duration
  • int — TimeStamp

Returns — void

native void MovieAddSubTitleText(
	text title,
	int duration,
	int timeStamp,
);

Category: Cinematics / Movie

# Examples

mods/core.sc2modbase.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.stormmodbase.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);
}