# Play Sound

Grammar — Play soundLink owned by player owningPlayer for audibleMask (at volume% volume, skip the first offset seconds)
FlagsNative | Action

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

# Arguments

  • soundlink — Sound Link
  • int — Owning Player
  • playergroup — Audible Mask
  • fixed — Volume
  • fixed — Offset

Returns — void

native void SoundPlayForPlayer(
	soundlink link,
	int inOwningPlayer,
	playergroup audibleMask,
	fixed volume,
	fixed offset,
);

Category: Sound / Sounds

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L3393
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3397
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3401
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3405
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3409
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3413
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3417
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3474
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_AmbLow", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L3478
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_AmbLow", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L3482
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_AmbLow", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L8841
SoundPlayForPlayer(SoundLink("XelNagaBridgeHit1", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L8843
SoundPlayForPlayer(SoundLink("XelNagaBridgeFinalHit", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L9217
SoundPlayForPlayer(SoundLink("XelNagaBridgeFirstLights", -1), c_maxPlayers, PlayerGroupAll(), 60.0, 0.0)
// L9218
SoundPlayForPlayer(SoundLink("Prologue_Vespene_Crack_Rumble_2D", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L9225
SoundPlayForPlayer(SoundLink("VP03_AmonThunder", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L9226
SoundPlayForPlayer(SoundLink("VP03_VoidCatalyst_Vx_Fx_Long_WhiteGas", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10082
SoundPlayForPlayer(SoundLink("AmonShadowVolley", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L10206
SoundPlayForPlayer(SoundLink("Event_Prologue03_VoidSeeker_FlyIn", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10212
SoundPlayForPlayer(SoundLink("Event_Prologue03_VoidSeeker_Exit", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3393
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3397
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3401
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3405
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3409
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3413
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3417
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_Low_Rumble", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L3474
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_AmbLow", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L3478
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_AmbLow", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L3482
SoundPlayForPlayer(SoundLink("Prologue_Zerg_Horde_AmbLow", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L8841
SoundPlayForPlayer(SoundLink("XelNagaBridgeHit1", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L8843
SoundPlayForPlayer(SoundLink("XelNagaBridgeFinalHit", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L9217
SoundPlayForPlayer(SoundLink("XelNagaBridgeFirstLights", -1), c_maxPlayers, PlayerGroupAll(), 60.0, 0.0)
// L9218
SoundPlayForPlayer(SoundLink("Prologue_Vespene_Crack_Rumble_2D", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L9225
SoundPlayForPlayer(SoundLink("VP03_AmonThunder", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L9226
SoundPlayForPlayer(SoundLink("VP03_VoidCatalyst_Vx_Fx_Long_WhiteGas", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10082
SoundPlayForPlayer(SoundLink("AmonShadowVolley", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L10206
SoundPlayForPlayer(SoundLink("Event_Prologue03_VoidSeeker_FlyIn", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10212
SoundPlayForPlayer(SoundLink("Event_Prologue03_VoidSeeker_Exit", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4088
SoundPlayForPlayer(SoundLink("SetPiece_HyperionDoor01_Close", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4243
SoundPlayForPlayer(SoundLink("SetPiece_HyperionDoor01_Open", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4249
SoundPlayForPlayer(SoundLink("UI_MercenaryBriefcase_HireMerc", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4825
SoundPlayForPlayer(SoundLink("UI_TerranPing", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L19495
SoundPlayForPlayer(SoundLink("PAiur04_Dimentional_Recall", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 3.0)
// L19512
SoundPlayForPlayer(SoundLink("CS_Tutorial_Protoss_BeamStrike_01", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L19513
SoundPlayForPlayer(SoundLink("CS_Tutorial_Protoss_BeamQuake_01a", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L19515
SoundPlayForPlayer(SoundLink("CS_Tutorial_Protoss_BeamStrike_02", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L19518
SoundPlayForPlayer(SoundLink("CS_Tutorial_Protoss_BeamStrike_03", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L19521
SoundPlayForPlayer(SoundLink("CS_Tutorial_Protoss_BeamStrike_04", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L1529
SoundPlayForPlayer(SoundLink("PAiur02_ReticuleAppears", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L6673
SoundPlayForPlayer(SoundLink("PAiur02_Music_Stinger", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L6898
SoundPlayForPlayer(SoundLink("Event_Lab01_ZerglingRelease", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L7066
SoundPlayForPlayer(SoundLink("PAiur02_ReticuleAppears", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L7457
SoundPlayForPlayer(SoundLink("PAiur02_ArtanisCorruptionAmbience", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L7475
SoundPlayForPlayer(SoundLink("pAiur02_Cine_Amon_Quake", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L7480
SoundPlayForPlayer(SoundLink("PAiur02_ZealotBam", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3464
SoundPlayForPlayer(SoundLink("Mutalisk_Yes", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3473
SoundPlayForPlayer(SoundLink("Event_Lab01_ZerglingRelease", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3869
SoundPlayForPlayer(SoundLink("PAiur01_HybridShockwave", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3876
SoundPlayForPlayer(SoundLink("PAiur01_Shak1_sfx_CarrierCrashExplo", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3976
SoundPlayForPlayer(SoundLink("PAiur01_HybridShockwave", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L3985
SoundPlayForPlayer(SoundLink("PAiur01_Shak1_sfx_CarrierCrashExplo", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5629
SoundPlayForPlayer(SoundLink("PAiur01_MothershipFlyby1", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5635
SoundPlayForPlayer(SoundLink("PAiur01_MothershipFlyby2", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5642
SoundPlayForPlayer(SoundLink("PAiur01_MothershipExplosion1", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5643
SoundPlayForPlayer(SoundLink("PAiur01_MothershipExplosion2", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L665
SoundPlayForPlayer(SoundLink("Event_Aiur03_Victory_Nydus_01", -1), c_maxPlayers, PlayerGroupAll(), 120.0, 0.0)
// L1606
SoundPlayForPlayer(SoundLink("SOAPylonPowerImpact", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L1658
SoundPlayForPlayer(SoundLink("SOAPylonPowerImpact", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L1711
SoundPlayForPlayer(SoundLink("SOAPylonPowerImpact", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L1764
SoundPlayForPlayer(SoundLink("SOAPylonPowerImpact", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L1839
SoundPlayForPlayer(SoundLink("PAiur03_NydusWorm_Birth", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L1855
SoundPlayForPlayer(SoundLink("PAiur03_NydusWorm_Birth", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L2812
SoundPlayForPlayer(SoundLink("Event_Expedition03_ProtossAlarm", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L2857
SoundPlayForPlayer(SoundLink("Event_Expedition03_ProtossAlarm", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4106
SoundPlayForPlayer(SoundLink("Event_Purifier02_Zerg_Walla_01", -1), c_maxPlayers, PlayerGroupAll(), 300.0, 0.0)
// L4069
SoundPlayForPlayer(SoundLink("PAiur04_Citadel_ShockWave", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4072
SoundPlayForPlayer(SoundLink("PAiur04_Citadel_ShockWave_RockDebris", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L6090
SoundPlayForPlayer(SoundLink("PAiur04_BarrierDisipate", 0), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L8372
SoundPlayForPlayer(SoundLink("NydusWorm_Birth", 0), c_maxPlayers, PlayerGroupAll(), 150.0, 0.0)
// L8514
SoundPlayForPlayer(SoundLink("NydusWorm_Birth", 0), c_maxPlayers, PlayerGroupAll(), 150.0, 0.0)
// L10045
SoundPlayForPlayer(SoundLink("PAiur04_Music_MidTransitionAlarakStinger", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10057
SoundPlayForPlayer(SoundLink("PAiur04_Alarak_Destroys_PowerPoint", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10063
SoundPlayForPlayer(SoundLink("PAiur04_GateExplosion", 0), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L10293
SoundPlayForPlayer(SoundLink("Aiur_PowerPoint_Death", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L10525
SoundPlayForPlayer(SoundLink("PAiur04_Karax_PowerPoint_KillShot", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L4002
SoundPlayForPlayer(SoundLink("pAiur02_Cine_Amon_Quake", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L4726
SoundPlayForPlayer(SoundLink("Event_Aiur05_OpenCine_Amb", -1), c_maxPlayers, PlayerGroupAll(), 70.0, 0.0)
// L4730
SoundPlayForPlayer(SoundLink("Event_Aiur05_OpenCine_ShardReveal", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L4739
SoundPlayForPlayer(SoundLink("Event_Aiur05_OpenCine_SkyBeam", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L5097
SoundPlayForPlayer(SoundLink("Event_Aiur05Victory_AmonAwake", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L5110
SoundPlayForPlayer(SoundLink("Event_Aiur05Victory_AmonShoots", -1), c_maxPlayers, PlayerGroupAll(), 90.0, 0.0)
// L5125
SoundPlayForPlayer(SoundLink("Event_Aiur05Victory_Post_CS", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5126
SoundPlayForPlayer(SoundLink("Event_Aiur05Victory_Post_CS_Vx", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5135
SoundPlayForPlayer(SoundLink("Event_Aiur05Victory_SoABeam1", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L5140
SoundPlayForPlayer(SoundLink("Event_Aiur05Victory_OrbitalStrikes", -1), c_maxPlayers, PlayerGroupAll(), 80.0, 0.0)
// L581
SoundPlayForPlayer(SoundLink("Event_SoA_Damage", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L594
SoundPlayForPlayer(SoundLink("Alarm_SoA_Protoss", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L598
SoundPlayForPlayer(SoundLink("Alarm_SoA_Protoss", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L602
SoundPlayForPlayer(SoundLink("Alarm_SoA_Protoss", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)
// L606
SoundPlayForPlayer(SoundLink("Alarm_SoA_Protoss", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0)