HU/setSoundEffectEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function hu}} Used to enable or disable specific sound effects. {{New feature/item|3.0132|1.3.2|| Use a player element to control a players voice w...") |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function hu}} | {{Client function hu}} | ||
Speciális hanghatások engedélyezéséhez vagy letiltásához használják. | |||
{{New feature/item|3.0132|1.3.2|| | {{New feature/item|3.0132|1.3.2|| | ||
Használja a [[player|játékos]] elemet, hogy szabályozza a játékosok hangját ezzel a funkcióval. | |||
}} | }} | ||
==Syntax== | ==Syntax== |
Revision as of 19:33, 21 July 2018
Speciális hanghatások engedélyezéséhez vagy letiltásához használják. Használja a játékos elemet, hogy szabályozza a játékosok hangját ezzel a funkcióval.
Syntax
bool setSoundEffectEnabled ( element sound, string effectName, bool bEnable )
OOP Syntax Help! I don't understand this!
- Method: sound:setEffectEnabled(...)
Required Arguments
- gargle
- compressor
- echo
- i3dl2reverb
- distortion
- chorus
- parameq
- reverb
- flanger
- bEnable: true if you want to enable the effect, false if you want to disable it.
Returns
Returns true if the effect was set successfully, false otherwise.
Example
This example creates a sound and set's the flanger sound effect enabled.
addCommandHandler("flanger",function(cmd,enabled) if(isElement(waterSplashes))then setSoundEffectEnabled(waterSplashes,cmd,enabled) else waterSplashes = playSound("splashes.mp3",true) setSoundEffectEnabled(waterSplashes,cmd,enabled) end end,true) --set it case sensitive as we are going to get the command name and use it in the setSoundEffectEnabled
Changelog
Version | Description |
---|
1.3.2 | Added player element for voice control |
See Also
- HU/getRadioChannel
- HU/getRadioChannelName
- HU/getSFXStatus
- HU/getSoundBPM
- HU/getSoundEffects
- HU/getSoundFFTData
- HU/getSoundLength
- HU/getSoundLevelData
- HU/getSoundMaxDistance
- HU/getSoundMetaTags
- HU/getSoundMinDistance
- HU/getSoundPan
- HU/getSoundPosition
- HU/getSoundProperties
- HU/getSoundSpeed
- HU/getSoundVolume
- HU/getSoundWaveData
- HU/isSoundPanningEnabled
- HU/isSoundPaused
- HU/playSFX
- HU/playSFX3D
- HU/playSound
- HU/playSound3D
- HU/playSoundFrontEnd
- HU/setRadioChannel
- HU/setSoundEffectEnabled
- HU/setSoundMaxDistance
- HU/setSoundMinDistance
- HU/setSoundPan
- HU/setSoundPanningEnabled
- HU/setSoundPaused
- HU/setSoundPosition
- HU/setSoundProperties
- HU/setSoundSpeed
- HU/setSoundVolume
- HU/stopSound