# Play Sound Scene File (Deprecated)

Grammar — Play soundLink with file using camera for players
FlagsNative | Action | Hidden

WARNING: THIS IS AN OLD FUNCTION AND ONLY REMAINS FOR BACKWARDS COMPATIBILITY WITH WINGS OF LIBERTY CUTSCENES. DO NOT USE THIS FOR NEW CUTSCENES. Plays a sound with the specified scene file for the specified player group. Scene files can be set up using the Previewer module.

# Arguments

  • soundlink — Sound Link
  • playergroup — Players
  • string — File
  • string — Camera

Returns — void

native void SoundPlaySceneFile(
	soundlink link,
	playergroup players,
	string sceneFile,
	string camera,
);

Category: Sound / Deprecated

# Examples

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

    libCamp_gf_ChangeAmbience(null);
    Wait(0.1, c_timeGame);
    SoundPlaySceneFile(gv_sceneMESound[lv_sceneIndex][lp_subIndex], PlayerGroupAll(), gv_sceneFile[lv_sceneIndex][lp_subIndex], "Cam_Export");
    gv_sceneSound = SoundLastPlayed();
    lv_movieName = ("TScene" + IntToString(lv_sceneIndex));

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

    libCamp_gf_ChangeAmbience(null);
    Wait(0.1, c_timeGame);
    SoundPlaySceneFile(gv_sceneMESound[lv_sceneIndex][lp_subIndex], PlayerGroupAll(), gv_sceneFile[lv_sceneIndex][lp_subIndex], "Cam_Export");
    gv_sceneSound = SoundLastPlayed();
    lv_movieName = ("TScene" + IntToString(lv_sceneIndex));