# Play Sound Scene File (Deprecated)
Grammar — Play soundLink with file using camera for players
Flags —Native
|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 Linkplayergroup
— Playersstring
— Filestring
— Camera
Returns — void
native void SoundPlaySceneFile(
soundlink link,
playergroup players,
string sceneFile,
string camera,
);
# Related
Category: Sound / Deprecated
- Set Sound Reverb (Deprecated) —
void
— SoundSetReverb - Play Sound Scene File (Deprecated) —
void
— SoundPlaySceneFile - Play Sound Scene (Deprecated) —
void
— SoundPlayScene - Play Sound (Deprecated) —
void
— SoundPlay - Play Sound On Unit (Deprecated) —
void
— SoundPlayOnUnit - Play Sound At Point (Deprecated) —
void
— SoundPlayAtPoint
# Examples
campaigns/liberty.sc2campaign — base.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.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));