equal
deleted
inserted
replaced
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 |
|