# Play Sound (Deprecated)

Grammar — Play soundLink for players (at volume% volume, skip the first offset seconds)
FlagsAction | Hidden

Plays a sound for the specified player group. Use the “Last Played Sound” function to refer to this sound.

# Arguments

  • soundlink — Sound Link
  • playergroup — Players
  • fixed — Volume
  • fixed — Offset

Returns — void

void SoundPlay(
	soundlink lp_soundLink,
	playergroup lp_players,
	fixed lp_volume,
	fixed lp_offset,
);

Category: Sound / Deprecated

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1670
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L974
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L1011
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L1138
SoundPlay(SoundLink("UI_ChallengeCountdown", 0), PlayerGroupAll(), 100.0, 0.0)
// L539
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L632
SoundPlay(SoundLink("UI_ObjectiveComplete", 0), PlayerGroupAll(), 100.0, 0.0)
// L801
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L981
SoundPlay(SoundLink("UI_ObjectiveComplete", 0), PlayerGroupAll(), 100.0, 0.0)
// L1518
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L1579
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L656
SoundPlay(SoundLink("LostViking_Thrust", 0), PlayerGroupAll(), 100.0, 0.0)
// L1062
SoundPlay(SoundLink("Mutalisk_Attack", 0), PlayerGroupAll(), 100.0, 0.0)
// L1064
SoundPlay(SoundLink("Mutalisk_Attack", 2), PlayerGroupAll(), 100.0, 0.0)
// L1066
SoundPlay(SoundLink("Mutalisk_Attack", 8), PlayerGroupAll(), 100.0, 0.0)
// L1068
SoundPlay(SoundLink("Mutalisk_Attack", 5), PlayerGroupAll(), 100.0, 0.0)
// L3199
SoundPlay(SoundLink("UI_TerranKlaxonAlert", 0), PlayerGroupAll(), 100.0, 0.0)
// L7766
SoundPlay(SoundLink("LostViking_LevelStart", 0), PlayerGroupAll(), 100.0, 0.0)
// L7820
SoundPlay(SoundLink("Terran_ExplosionMedium", 3), PlayerGroupAll(), 100.0, 0.0)
// L7882
SoundPlay(SoundLink("LostViking_GainLIfe", 0), PlayerGroupAll(), 100.0, 0.0)
// L8781
SoundPlay(SoundLink("LostViking_VikingMovement", 0), PlayerGroupAll(), 100.0, 0.0)
// L2843
SoundPlay(SoundLink("UI_TerranPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L2881
SoundPlay(SoundLink("UI_TerranPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L2919
SoundPlay(SoundLink("UI_TerranPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L3628
SoundPlay(SoundLink("NydusWorm_Birth", -1), PlayerGroupAll(), 100.0, 0.0)
// L3787
SoundPlay(SoundLink("Terran_Veterancy", -1), PlayerGroupAll(), 100.0, 0.0)
// L5327
SoundPlay(SoundLink("UI_TerranPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L5942
SoundPlay(SoundLink("THanson01BriefingHanson00010", 0), PlayerGroupAll(), 100.0, 0.0)
// L6037
SoundPlay(SoundLink("THanson01BriefingHanson00011", 0), PlayerGroupAll(), 100.0, 0.0)
// L6039
SoundPlay(SoundLink("THanson01BriefingHanson00012", 0), PlayerGroupAll(), 100.0, 0.0)
// L6153
SoundPlay(SoundLink("THanson01BriefingHanson00005", 0), PlayerGroupAll(), 100.0, 0.0)
// L2638
SoundPlay(SoundLink("Ghost_DropPodImpact", -1), PlayerGroupAll(), 100.0, 0.0)
// L2646
SoundPlay(SoundLink("Ghost_DropPodImpact", -1), PlayerGroupAll(), 100.0, 0.0)
// L4029
SoundPlay(SoundLink("Event_Hanson02ZombieHowl", -1), PlayerGroupAll(), 100.0, 0.0)
// L4768
SoundPlay(SoundLink("THanson02BriefingRaynor00002", 0), PlayerGroupAll(), 100.0, 0.0)
// L4771
SoundPlay(SoundLink("THanson02BriefingHanson00010", 0), PlayerGroupAll(), 100.0, 0.0)
// L4801
SoundPlay(SoundLink("THanson02BriefingRaynor00011", 0), PlayerGroupAll(), 100.0, 0.0)
// L4804
SoundPlay(SoundLink("THanson02BriefingRaynor00006", 0), PlayerGroupAll(), 100.0, 0.0)
// L4834
SoundPlay(SoundLink("THanson02BriefingRaynor00007", 0), PlayerGroupAll(), 100.0, 0.0)
// L4866
SoundPlay(SoundLink("THanson02BriefingHanson00012", 0), PlayerGroupAll(), 100.0, 0.0)
// L4870
SoundPlay(SoundLink("THanson02BriefingHanson00008", 0), PlayerGroupAll(), 100.0, 0.0)
// L5040
SoundPlay(SoundLink("UI_TerranKlaxonAlert", -1), PlayerGroupAll(), 100.0, 0.0)
// L5051
SoundPlay(SoundLink("UI_TerranKlaxonAlert", -1), PlayerGroupAll(), 100.0, 0.0)
// L5062
SoundPlay(SoundLink("UI_TerranKlaxonAlert", -1), PlayerGroupAll(), 100.0, 0.0)
// L5073
SoundPlay(SoundLink("UI_TerranKlaxonAlert", -1), PlayerGroupAll(), 100.0, 0.0)
// L5083
SoundPlay(SoundLink("UI_TerranKlaxonAlert", -1), PlayerGroupAll(), 100.0, 0.0)
// L6032
SoundPlay(SoundLink("THanson03ABriefingHanson00001", -1), PlayerGroupAll(), 100.0, 0.0)
// L6035
SoundPlay(SoundLink("THanson03ABriefingRaynor00002", -1), PlayerGroupAll(), 100.0, 0.0)
// L6185
SoundPlay(SoundLink("THanson03ABriefingRaynor00004", -1), PlayerGroupAll(), 100.0, 0.0)
// L6191
SoundPlay(SoundLink("THanson03ABriefingSwann00007", -1), PlayerGroupAll(), 100.0, 0.0)
// L6235
SoundPlay(SoundLink("THanson03ABriefingSwann00003", -1), PlayerGroupAll(), 100.0, 0.0)
// L705
SoundPlay(SoundLink("THanson03BCivilian100023", -1), PlayerGroupAll(), 100.0, 0.0)
// L714
SoundPlay(SoundLink("THanson03BCivilian400041", -1), PlayerGroupAll(), 100.0, 0.0)
// L723
SoundPlay(SoundLink("THanson03BCivilian200015", -1), PlayerGroupAll(), 100.0, 0.0)
// L1592
SoundPlay(SoundLink("Event_Hanson02ZombieHowl", -1), PlayerGroupAll(), 100.0, 0.0)
// L4017
SoundPlay(SoundLink("THanson03BBriefingRaynor00002", -1), PlayerGroupAll(), 100.0, 0.0)
// L4021
SoundPlay(SoundLink("THanson03BBriefingRaynor00010", -1), PlayerGroupAll(), 100.0, 0.0)
// L4025
SoundPlay(SoundLink("THanson03BBriefingRaynor00003", -1), PlayerGroupAll(), 100.0, 0.0)
// L4036
SoundPlay(SoundLink("THanson03BBriefingTychus00004", -1), PlayerGroupAll(), 100.0, 0.0)
// L4039
SoundPlay(SoundLink("THanson03BBriefingRaynor00006", -1), PlayerGroupAll(), 100.0, 0.0)
// L4229
SoundPlay(SoundLink("THanson03BBriefingSwann00007", -1), PlayerGroupAll(), 100.0, 0.0)
// L3548
SoundPlay(SoundLink("UI_TerranPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L3765
SoundPlay(SoundLink("UI_TerranReminderPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L3954
SoundPlay(SoundLink("UI_TerranPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L5637
SoundPlay(SoundLink("THorner01BriefingRaynor00018", -1), PlayerGroupAll(), 100.0, 0.0)
// L5639
SoundPlay(SoundLink("THorner01BriefingHorner00002", -1), PlayerGroupAll(), 100.0, 0.0)
// L5642
SoundPlay(SoundLink("THorner01BriefingHorner00004", -1), PlayerGroupAll(), 100.0, 0.0)
// L5721
SoundPlay(SoundLink("THorner01BriefingHorner00006", -1), PlayerGroupAll(), 100.0, 0.0)
// L5723
SoundPlay(SoundLink("THorner01BriefingRaynor00007", -1), PlayerGroupAll(), 100.0, 0.0)
// L5759
SoundPlay(SoundLink("THorner01BriefingHorner00008", -1), PlayerGroupAll(), 100.0, 0.0)
// L5761
SoundPlay(SoundLink("THorner01BriefingRaynor00009", -1), PlayerGroupAll(), 100.0, 0.0)
// L1376
SoundPlay(SoundLink("TUI_StarmapMenuPopup", -1), PlayerGroupAll(), 100.0, 0.0)
// L1464
SoundPlay(SoundLink("UI_TechConsole_Purchase", -1), PlayerGroupAll(), 100.0, 0.0)
// L3929
SoundPlay(SoundLink("IncomingTransmission", -1), PlayerGroupAll(), 100.0, 0.0)
// L5137
SoundPlay(SoundLink("THorner02BriefingHorner00001", -1), PlayerGroupAll(), 100.0, 0.0)
// L5140
SoundPlay(SoundLink("THorner02BriefingHorner00011", -1), PlayerGroupAll(), 100.0, 0.0)
// L5143
SoundPlay(SoundLink("THorner02BriefingRaynor00018", -1), PlayerGroupAll(), 100.0, 0.0)
// L5146
SoundPlay(SoundLink("THorner02BriefingRaynor00002", -1), PlayerGroupAll(), 100.0, 0.0)
// L5240
SoundPlay(SoundLink("THorner02BriefingHan00005", -1), PlayerGroupAll(), 100.0, 0.0)
// L5243
SoundPlay(SoundLink("THorner02BriefingRaynor00006", -1), PlayerGroupAll(), 100.0, 0.0)
// L5292
SoundPlay(SoundLink("THorner02BriefingHorner00007", -1), PlayerGroupAll(), 100.0, 0.0)
// L1387
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L1565
SoundPlay(SoundLink("Ghost_DropPodImpact", -1), PlayerGroupAll(), 100.0, 0.0)
// L2030
SoundPlay(SoundLink("UI_TerranKlaxonAlert", 0), PlayerGroupAll(), 100.0, 0.0)
// L2269
SoundPlay(SoundLink("UI_TerranKlaxonAlert", 0), PlayerGroupAll(), 100.0, 0.0)
// L2529
SoundPlay(SoundLink("UI_TerranKlaxonAlert", 0), PlayerGroupAll(), 100.0, 0.0)
// L2774
SoundPlay(SoundLink("UI_TerranKlaxonAlert", 0), PlayerGroupAll(), 100.0, 0.0)
// L3050
SoundPlay(SoundLink("UI_TerranKlaxonAlert", 0), PlayerGroupAll(), 100.0, 0.0)
// L3223
SoundPlay(SoundLink("Alert_TerranCalldownLaunch", -1), PlayerGroupAll(), 100.0, 0.0)
// L3468
SoundPlay(SoundLink("TUIWarningPing", 0), PlayerGroupAll(), 100.0, 0.0)
// L3906
SoundPlay(SoundLink("Thor_Movement", 0), PlayerGroupAll(), 100.0, 0.0)
// L476
SoundPlay(SoundLink("TUI_StarmapMenuPopup", -1), PlayerGroupAll(), 100.0, 0.0)
// L487
SoundPlay(SoundLink("TUI_ArmoryConsoleExit", -1), PlayerGroupAll(), 100.0, 0.0)
// L490
SoundPlay(SoundLink("TUI_ArmoryConsolePurchase", -1), PlayerGroupAll(), 100.0, 0.0)
// L493
SoundPlay(SoundLink("TUI_ArmoryConsoleSelect", -1), PlayerGroupAll(), 100.0, 0.0)
// L515
SoundPlay(SoundLink("TUI_ArmoryConsolePurchase", -1), PlayerGroupAll(), 100.0, 0.0)
// L2757
SoundPlay(SoundLink("Thor_Build", 0), PlayerGroupAll(), 100.0, 0.0)
// L5113
SoundPlay(SoundLink("THorner04Reaper00004", -1), PlayerGroupAll(), 100.0, 0.0)
// L5166
SoundPlay(SoundLink("THorner04SiegeTank00022", -1), PlayerGroupAll(), 100.0, 0.0)
// L5219
SoundPlay(SoundLink("Viking_Attack", 3), PlayerGroupAll(), 100.0, 0.0)
// L5407
SoundPlay(SoundLink("IncomingTransmission", 0), PlayerGroupAll(), 100.0, 0.0)