# Play Sound Scene
Grammar — Play soundLink owned by player owningPlayer with animation animation on units|Unit Group for audibleMask
Flags —Native
|Action
Plays a sound for the specified players, and plays the specified animation on the specified units. The animation on the units will be sync’d up with the sound.
# Arguments
soundlink
— Sound Linkint
— Owning Playerplayergroup
— Audible Maskunitgroup
— Unitsstring
<modelanim> — Animation
Returns — void
native void SoundPlaySceneForPlayer(
soundlink link,
int inOwningPlayer,
playergroup audibleMask,
unitgroup units,
string animProps,
);
# Related
Category: Sound / Scenes
- Play Sound Scene —
void
— SoundPlaySceneForPlayer
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4257
// Automatic Variable Declarations
// Implementation
SoundPlaySceneForPlayer(lp_soundLink, c_maxPlayers, lp_players, lp_units, lp_animation);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3523
// Automatic Variable Declarations
// Implementation
SoundPlaySceneForPlayer(lp_soundLink, c_maxPlayers, lp_players, lp_units, lp_animation);
}