equal
deleted
inserted
replaced
1318 |
1318 |
1319 == Sound functions == |
1319 == Sound functions == |
1320 === `PlaySound(soundId, [gearUid [, instaVoice]])` === |
1320 === `PlaySound(soundId, [gearUid [, instaVoice]])` === |
1321 Plays the specified sound. Possible values for `soundId` are listed on the [Sounds] page. |
1321 Plays the specified sound. Possible values for `soundId` are listed on the [Sounds] page. |
1322 |
1322 |
1323 To play a voice (see [Taunts] for a list], you must also set `gearUid`. `gearUid` is the hedgehog gear which is used to “talk”. |
1323 To play a voice (see [Taunts] for a list), you must also set `gearUid`. `gearUid` is the hedgehog gear which is used to “talk”. |
1324 |
1324 |
1325 If you play a voice, by default the voice will respect an internal queue and might be played with an delay in order to prevent annoying voice overlapping. Since version 0.9.24, you can disable this behaviour and force Hedgewars to instantly play the voice by also setting `instaVoice` to `true`. Only use `instaVoice` when you really need it. |
1325 If you play a voice, by default the voice will respect an internal queue and might be played with an delay in order to prevent annoying voice overlapping. Since version 0.9.24, you can disable this behaviour and force Hedgewars to instantly play the voice by also setting `instaVoice` to `true`. Only use `instaVoice` when you really need it. |
1326 |
1326 |
1327 === `SetSoundMask(soundId, isMasked)` (0.9.24) === |
1327 === `SetSoundMask(soundId, isMasked)` (0.9.24) === |
1328 Disables a given sound (including taunts) from being played by the engine. `soundId` is a valid sound ID on [Sounds] or [Taunts]. `isMasked` is a boolean. If `true`, the sound will not be played by the engine anymore. If `false`, playing this sound is allowed again. |
1328 Disables a given sound (including taunts) from being played by the engine. `soundId` is a valid sound ID on [Sounds] or [Taunts]. `isMasked` is a boolean. If `true`, the sound will not be played by the engine anymore. If `false`, playing this sound is allowed again. |