SetSoundEffectParameter

From Multi Theft Auto: Wiki
Revision as of 12:59, 6 August 2021 by StrixG (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0159|1.5.8|20921|This function sets parameter of sound effect.}} ==Syntax== <syntaxhighlight lang="lua">bool setSoundEffe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function sets parameter of sound effect.

Syntax

bool setSoundEffectParameter( element sound, string effectName, string effectParam, var value )

Required Arguments

  • sound: the sound.
  • effectName: the effect.
  • effectParam: the parameter.
  • value: the parameter value.

Returns

Returns true if everything went well, error is raised otherwise.

Parameters

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20921

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20921" />

Example

Click to collapse [-]
Client

See Also