Morrowind Mod:GetSoundPlaying

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

GetSoundPlaying

                GetSoundPlaying, "SoundID"

        Type:   Sound

     Returns:   short

     Example:   if ( GetSoundPlaying, "endrumble" == 1 )
                set sValue to ( GetSoundPlaying, "endrumble" )

     Scripts:   LorkhanHeart
                lava

Returns 1 if the given sound is currently being played by the calling object, or 0 otherwise. Sound IDs can be found from the Gameplay-Sounds menu in the Construction Set. You can use this function to determine the current action of the player/actor, such as whether they are casting a spell, or swinging a weapon.