# Sound Asset Index

Grammar — Sound asset index of soundLink
FlagsNative | Function

Returns the sound asset index for a Sound Link. Sound Links are used to refer to specific sounds. Sound links are comprised of a sound ID (to identify the sound data entry) and an asset index (to identify the asset within that data entry).

# Arguments

  • soundlink — Sound Link

Returns — int

native int SoundLinkAsset(soundlink soundId);

Category: Sound / Sound Properties

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:1195

    // Implementation
    lv_sndGameLink = SoundLinkId(lp_soundLink);
    lv_sndAssetID = SoundLinkAsset(lp_soundLink);
    if ((lv_sndAssetID < 0)) {
        lv_sndAssetID = 0;