# Preload Movie

Grammar — Preload file|Movie File queue|Immediately/For Next Map
FlagsNative | Action

Preloads a movie. The file must be explicitly identified (it won’t work if you plug in a variable to that parameter). Preloading will force an asset or data entry to be loaded into memory before the map starts, rather than be loaded on demand as the map runs.

# Arguments

  • string<filepath> — File
  • bool<preset::PreloadQueue> — Queue

Returns — void

native void PreloadMovie(string path, bool queue);

Category: Game / Preloading

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:12320

    }
    else if (auto1D660D56_val == libCamp_ge_SceneID_SceneTerran01RaynorIntro) {
        PreloadMovie("Assets\\Textures\\sm_pt01_tv.ogv", false);
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28711

    PreloadObject(c_gameCatalogModel, ("AdjutantPortrait"), false);
    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_00.ogv", false);
    ConversationDataPreloadLines("TRaynor01Briefing");
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28739

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_BriefingTRaynor01PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_02.ogv", false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28740

    TriggerExecute(gt_BriefingTRaynor01PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_02.ogv", false);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28851

    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_00.ogv", false);
    ConversationDataPreloadLines("TRaynor02Briefing");
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28879

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_BriefingTRaynor02PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_02.ogv", false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:28880

    TriggerExecute(gt_BriefingTRaynor02PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_02.ogv", false);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:29028

    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_00.ogv", false);
    ConversationDataPreloadLines("TRaynor03Briefing");
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:29048


    TriggerExecute(gt_BriefingTRaynor03PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_02.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_03.ogv", false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:29049

    TriggerExecute(gt_BriefingTRaynor03PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_02.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_03.ogv", false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:12320

    }
    else if (auto1D660D56_val == libCamp_ge_SceneID_SceneTerran01RaynorIntro) {
        PreloadMovie("Assets\\Textures\\sm_pt01_tv.ogv", false);
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:28711

    PreloadObject(c_gameCatalogModel, ("AdjutantPortrait"), false);
    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_00.ogv", false);
    ConversationDataPreloadLines("TRaynor01Briefing");
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:28739

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_BriefingTRaynor01PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_02.ogv", false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:28740

    TriggerExecute(gt_BriefingTRaynor01PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor01_02.ogv", false);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:28851

    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_00.ogv", false);
    ConversationDataPreloadLines("TRaynor02Briefing");
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:28879

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_BriefingTRaynor02PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_02.ogv", false);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:28880

    TriggerExecute(gt_BriefingTRaynor02PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor02_02.ogv", false);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:29028

    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
    gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_00.ogv", false);
    ConversationDataPreloadLines("TRaynor03Briefing");
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:29048


    TriggerExecute(gt_BriefingTRaynor03PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_02.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_03.ogv", false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:29049

    TriggerExecute(gt_BriefingTRaynor03PreloadRough, true, false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_01.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_02.ogv", false);
    PreloadMovie("Assets\\Textures\\briefing_video_traynor03_03.ogv", false);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:1019

    }

    PreloadMovie("Assets\\Textures\\cinematic_swarm08.ogv", true);
    SoundPlay(SoundLink("Ambience_rain_quad_loop", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_ambienceRain = SoundLastPlayed();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2mapMapScript.galaxy:1019

    }

    PreloadMovie("Assets\\Textures\\cinematic_swarm08.ogv", true);
    SoundPlay(SoundLink("Ambience_rain_quad_loop", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_ambienceRain = SoundLastPlayed();