SetSoundEffectEnabled

From Multi Theft Auto: Wiki
Revision as of 16:43, 9 August 2010 by Gamesnert (talk | contribs) (Created page with '__NOTOC__ {{Client function}} Used to enable or disable specific sound effects. ==Syntax== <syntaxhighlight lang="lua">int setSoundEffectEnabled ( element sound, string effectName, bool togg…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Used to enable or disable specific sound effects.

Syntax

int setSoundEffectEnabled ( element sound, string effectName, bool toggle )

Required Arguments

  • sound: a sound element.
  • effectName: the effect you want to enable or disable
  • gargle
  • compressor
  • echo
  • i3dl2reverb
  • distortion
  • chorus
  • parameq
  • reverb
  • flanger
  • toggle: 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

-- TODO

See Also