# Movie Dynamic Subtitles and Duration
Grammar — Add dynamic subtitles and duration based on the sound soundFile
Flags —Action
|Restricted
When recording a movie, this function add a subtitle to the movie event file at the current recording time, dynamically pulling the text and duration from a sound entry.
# Arguments
string
<gamelink::Sound> — Sound File
Returns — void
void libNtve_gf_MovieDynamicSubtitlesandDuration(
string lp_soundFile,
);
# 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
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1760
libLbty_gf_SetAllSoundChannelVolumesStandardTiming(1, PlayerGroupAll());
// Transmission - SoundLink("TutorialAdjutant00001", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00001");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00001", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00067", -1)
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1763
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00001", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00067", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00067");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00067", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00072", -1)
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1766
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00067", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00072", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00072");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00072", -1), 0.0, c_transmissionDurationAdd, false);
Wait(1.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1776
Wait(1.0, c_timeGame);
// Transmission - SoundLink("TutorialAdjutant00002", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00002");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00002", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialminimaphighlight.dds", c_triggerBlendModeAdd, 404, 372, c_anchorBottomLeft, 0, 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1802
VisExploreArea(gv_p01_USER, RegionEntireMap(), false, false);
// Transmission - SoundLink("TutorialAdjutant00004", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00004");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00004", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialinfolefthighlight.dds", c_triggerBlendModeAdd, 313, 246, c_anchorBottomLeft, 390, 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1816
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00003", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00003");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00003", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialcommandcardhighlight.dds", c_triggerBlendModeAdd, 503, 348, c_anchorBottomRight, 5, -2);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1826
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00005", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00005");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00211", -1), 0.0, c_transmissionDurationAdd, false);
HelpPanelAddTip(PlayerGroupAll(), libNtve_gf_FormatTipTitle(StringExternal("Param/Value/32C54194"), 0), StringExternal("Param/Value/7BA2B87F"), StringExternal("Param/Value/BB3BD1D4"), "Assets\\Textures\\ui_icon_attention.dds");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1832
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00069", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00069");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00069", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialresourceshighlight.dds", c_triggerBlendModeAdd, 212, 134, c_anchorTopRight, 295, -34);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1841
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00070", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00070");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00070", -1), 0.0, c_transmissionDurationAdd, false);
Wait(3.5, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1884
libLbty_gf_SetAllSoundChannelVolumesStandardTiming(1, PlayerGroupAll());
// Transmission - SoundLink("TutorialAdjutant00167", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00167");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00167", -1), 0.0, c_transmissionDurationAdd, true);
libLbty_gf_SetAllSoundChannelVolumesStandardTiming(2, PlayerGroupAll());
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1760
libLbty_gf_SetAllSoundChannelVolumesStandardTiming(1, PlayerGroupAll());
// Transmission - SoundLink("TutorialAdjutant00001", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00001");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00001", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00067", -1)
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1763
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00001", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00067", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00067");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00067", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00072", -1)
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1766
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00067", -1), 0.0, c_transmissionDurationAdd, true);
// Transmission - SoundLink("TutorialAdjutant00072", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00072");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00072", -1), 0.0, c_transmissionDurationAdd, false);
Wait(1.0, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1776
Wait(1.0, c_timeGame);
// Transmission - SoundLink("TutorialAdjutant00002", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00002");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00002", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialminimaphighlight.dds", c_triggerBlendModeAdd, 404, 372, c_anchorBottomLeft, 0, 0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1802
VisExploreArea(gv_p01_USER, RegionEntireMap(), false, false);
// Transmission - SoundLink("TutorialAdjutant00004", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00004");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00004", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialinfolefthighlight.dds", c_triggerBlendModeAdd, 313, 246, c_anchorBottomLeft, 390, 0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1816
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00003", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00003");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00003", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialcommandcardhighlight.dds", c_triggerBlendModeAdd, 503, 348, c_anchorBottomRight, 5, -2);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1826
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00005", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00005");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00211", -1), 0.0, c_transmissionDurationAdd, false);
HelpPanelAddTip(PlayerGroupAll(), libNtve_gf_FormatTipTitle(StringExternal("Param/Value/32C54194"), 0), StringExternal("Param/Value/7BA2B87F"), StringExternal("Param/Value/BB3BD1D4"), "Assets\\Textures\\ui_icon_attention.dds");
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1832
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00069", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00069");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00069", -1), 0.0, c_transmissionDurationAdd, false);
libNtve_gf_DisplayScreenImage(1, "Assets\\Textures\\tutorialresourceshighlight.dds", c_triggerBlendModeAdd, 212, 134, c_anchorTopRight, 295, -34);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1841
Wait(1.0, c_timeReal);
// Transmission - SoundLink("TutorialAdjutant00070", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00070");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00070", -1), 0.0, c_transmissionDurationAdd, false);
Wait(3.5, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1884
libLbty_gf_SetAllSoundChannelVolumesStandardTiming(1, PlayerGroupAll());
// Transmission - SoundLink("TutorialAdjutant00167", -1)
libNtve_gf_MovieDynamicSubtitlesandDuration("TutorialAdjutant00167");
libNtve_gf_SendTransmissionSimple(TransmissionSourceFromModel(null), libNtve_gf_CinematicPortrait(4), SoundLink("TutorialAdjutant00167", -1), 0.0, c_transmissionDurationAdd, true);
libLbty_gf_SetAllSoundChannelVolumesStandardTiming(2, PlayerGroupAll());