# Пользовательские дополнения

На главную

## common.GetStateRelatedSound( name )

Получить идентификатор звука из RelatedSounds стэйта.

    -- библиотека:
    common

    -- объявление:
    function GetStateRelatedSound( name )

    -- параметры:
    name: string -- идентификатор текста

    -- возвращаемые значения:
    id: Sound2DId - Id звука

    -- пример:
    local soundId = common.GetStateRelatedSound( name )

#### Search: "CategoryLuaApi" "CategoryLuaSound"

CategoryLuaSound
FunctionCommonCreateProlongedStateSound
FunctionCommonCreateSound
FunctionCommonGetAddonRelatedGroupSound
FunctionCommonGetAddonRelatedGroupSoundOptional
FunctionCommonGetAddonRelatedSound
FunctionCommonGetStateRelatedGroupSound
FunctionCommonGetStateRelatedGroupSoundOptional
FunctionCommonGetStateRelatedSound
FunctionCommonPlayMusic
FunctionSoundPlay
FunctionSoundStop
Sound2DId

#### Search: "CategoryLuaApi" "CategoryRelatedResources"

CategoryRelatedResources
FunctionCommonGetAddonRelatedAliasVisObject
FunctionCommonGetAddonRelatedDecal
FunctionCommonGetAddonRelatedGroupSound
FunctionCommonGetAddonRelatedGroupSoundOptional
FunctionCommonGetAddonRelatedGroupText
FunctionCommonGetAddonRelatedGroupTexts
FunctionCommonGetAddonRelatedGroupTexture
FunctionCommonGetAddonRelatedSound
FunctionCommonGetAddonRelatedText
FunctionCommonGetAddonRelatedTextGroup
FunctionCommonGetAddonRelatedTexture
FunctionCommonGetAddonRelatedTextureGroup
FunctionCommonGetAddonRelatedVisAction
FunctionCommonGetAddonRelatedVisObject
FunctionCommonGetStateRelatedAliasVisObject
FunctionCommonGetStateRelatedDecal
FunctionCommonGetStateRelatedGroupSound
FunctionCommonGetStateRelatedGroupSoundOptional
FunctionCommonGetStateRelatedGroupText
FunctionCommonGetStateRelatedGroupTexture
FunctionCommonGetStateRelatedSound
FunctionCommonGetStateRelatedText
FunctionCommonGetStateRelatedTextGroup
FunctionCommonGetStateRelatedTexture
FunctionCommonGetStateRelatedTextureGroup
FunctionCommonGetStateRelatedVisAction
FunctionCommonGetStateRelatedVisObject
FunctionRelatedTextsLuaGetText
FunctionRelatedTextsLuaHasText
FunctionRelatedTexturesLuaGetTexture
FunctionRelatedTexturesLuaHasTexture
RelatedResources
RelatedTextsLua
RelatedTexturesLua

CategoryLuaApi CategoryFunction CategoryRelatedResources CategoryLuaSound

На главную