# Preload Sound Object

Grammar — Preload id|Sound Object queue|Immediately/For Next Map
FlagsAction

Preloads a sound data entry and its associated assets. The sound 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 [ gamelink::Sound ] — Sound
  • bool [ preset::PreloadQueue ] — Queue

Returns — void

void libNtve_gf_PreloadSoundObject(
	string lp_id,
	bool lp_queue,
);

Category: Game / Preloading

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L12308
libNtve_gf_PreloadSoundObject(SoundLinkId(gv_sceneMESound[(lp_sceneID)][lv_index]), false)
// L32251
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle1", false)
// L32252
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle2", false)
// L37559
libNtve_gf_PreloadSoundObject("TVTRaynor01Raynor00005", false)
// L37682
libNtve_gf_PreloadSoundObject("TVTRaynor02Raynor00003", false)
// L37683
libNtve_gf_PreloadSoundObject("TVTRaynor02Tychus00002", false)
// L38173
libNtve_gf_PreloadSoundObject("TVTHanson03BRaynor00014", false)
// L905
libNtve_gf_PreloadSoundObject("Swann_PlaceTurretVO", false)
// L906
libNtve_gf_PreloadSoundObject("Raynor_SnipeVO", false)
// L907
libNtve_gf_PreloadSoundObject("Tychus_TossGrenadeVO", false)
// L12308
libNtve_gf_PreloadSoundObject(SoundLinkId(gv_sceneMESound[(lp_sceneID)][lv_index]), false)
// L32251
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle1", false)
// L32252
libNtve_gf_PreloadSoundObject("Tychus05Briefing_GreenReticle2", false)
// L37559
libNtve_gf_PreloadSoundObject("TVTRaynor01Raynor00005", false)
// L37682
libNtve_gf_PreloadSoundObject("TVTRaynor02Raynor00003", false)
// L37683
libNtve_gf_PreloadSoundObject("TVTRaynor02Tychus00002", false)
// L38173
libNtve_gf_PreloadSoundObject("TVTHanson03BRaynor00014", false)
// L905
libNtve_gf_PreloadSoundObject("Swann_PlaceTurretVO", false)
// L906
libNtve_gf_PreloadSoundObject("Raynor_SnipeVO", false)
// L907
libNtve_gf_PreloadSoundObject("Tychus_TossGrenadeVO", false)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L13302
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L13303
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L13304
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L6642
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L6643
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L6644
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L2313
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L2314
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L2315
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L4447
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L4448
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L4449
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L6411
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_Start", false)
// L6412
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_BreathLoop", false)
// L6413
libNtve_gf_PreloadSoundObject("UI_LowHealthWarning_HeartBeatLoop", false)