GetSoundEffectParameters: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
{{New feature/item|3.0159|1.5.8|20921|This function gets parameters of a sound effect.}}
{{New feature/item|3.0159|1.5.8|20914|This function gets parameters of a sound effect.}}


==Syntax==  
==Syntax==  
Line 13: Line 13:


===Parameters===
===Parameters===
<!-- {{Physical_Properties}} -->
<!-- Effects parameters -->


==Requirements==
==Requirements==
{{Requirements|n/a|1.5.8-9.20921|}}
{{Requirements|n/a|1.5.8-9.20914|}}


==Example==  
==Example==  
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
getSoundEffectParameters(
local soundEchoParams = getSoundEffectParameters(sound, "echo")
</syntaxhighlight>
</syntaxhighlight>
</section>
</section>

Revision as of 13:38, 7 August 2021

This function gets parameters of a sound effect.

Syntax

table getSoundEffectParameters( element sound, string effectName )

Required Arguments

  • sound: the sound element.
  • effectName: the effect name.

Returns

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

Parameters

Requirements

This template will be deleted.

Example

Click to collapse [-]
Client
local soundEchoParams = getSoundEffectParameters(sound, "echo")

See Also