LuaAudio.wiki
changeset 1761 a4c79fe4c9d9
parent 1749 91756d20ce3e
child 1799 af459cd65ac6
equal deleted inserted replaced
1760:a9e06d2265f0 1761:a4c79fe4c9d9
     1 #summary List of functions in the Lua API that affect the audio
     1 #summary List of functions in the Lua API that affect the audio
     2 
     2 
     3 = Lua API: GUI and audio functions =
     3 = Lua API: GUI and audio functions =
     4 This page is a list of all functios in the [LuaAPI Lua API] that affect the audio.
     4 This page is a list of all functios in the [LuaAPI Lua API] that affect the audio.
     5 
     5 
     6 == Sound functions ==
     6 == Audio functions ==
     7 === `PlaySound(soundId, [gearUid [, instaVoice]])` ===
     7 === `PlaySound(soundId, [gearUid [, instaVoice]])` ===
     8 Plays the specified sound. Possible values for `soundId` are listed on the [Sounds] page.
     8 Plays the specified sound. Possible values for `soundId` are listed on the [Sounds] page.
     9 
     9 
    10 To play a voice (see [Taunts] for a list), you must also set `gearUid`. `gearUid` is the hedgehog gear which is used to “talk”.
    10 To play a voice (see [Taunts] for a list), you must also set `gearUid`. `gearUid` is the hedgehog gear which is used to “talk”.
    11 
    11 
    32 Example:
    32 Example:
    33 
    33 
    34 <code language="lua">SetSoundMask(sndIncoming, true)
    34 <code language="lua">SetSoundMask(sndIncoming, true)
    35 -- Disable the “Incoming” sound from being played</code>
    35 -- Disable the “Incoming” sound from being played</code>
    36 
    36 
    37