# Preload Movie
Grammar — Preload file|Movie File queue|Immediately/For Next Map
Flags —Native
|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> — Filebool
<preset::PreloadQueue> — Queue
Returns — void
native void PreloadMovie(string path, bool queue);
# Related
Category: Game / Preloading
- Preload Asset —
void
— PreloadAsset - Preload Image —
void
— PreloadImage - Preload Layout —
void
— PreloadLayout - Preload Model —
void
— PreloadModel - Preload Model Animation —
void
— libNtve_gf_PreloadModelAnimation - Preload Model Object —
void
— libNtve_gf_PreloadModelObject - Preload Movie —
void
— PreloadMovie - Preload Object —
void
— PreloadObject - Preload Scene —
void
— PreloadScene - Preload Script —
void
— PreloadScript - Preload Sound —
void
— PreloadSound - Preload Sound Object —
void
— libNtve_gf_PreloadSoundObject - Preload Soundtrack —
void
— libNtve_gf_PreloadSoundtrack - Preload Unit —
void
— libNtve_gf_PreloadUnit
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2map — MapScript.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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/swarm.sc2campaign — base.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.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();