# Value From Data Table (Sound)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns a sound value from a data table. Data tables allow you to store and recall values using a string identifier.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name

Returns — sound

native sound DataTableGetSound(bool global, string name);

Category: Data Table / Load Value

# Examples

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L337
DataTableGetSound(true, libVCMI_gf_PM_SoundDataTableName())

# mods/heroesdata.stormmod

GameLib.galaxy

// L5049
DataTableGetSound(false, TriggerEventParamName(libGame_gv_eventID_AnnouncerVOInitiated_C, libGame_gv_eventParam_Sound_C))

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L1796
DataTableGetSound(true, libNCMI_gf_NM_SoundDataTableName())

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L631
DataTableGetSound(true, libCOMI_gf_CM_SoundDataTableName())