GetSoundEffectParameters: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


===Returns===
===Returns===
Returns '''true''' if everything went well, error is raised otherwise.
Returns a [[table]] with the parameter names as the keys, and their values. If the specified effect name is not valid, an error is raised.
 
===Parameters===
===Parameters===
<!-- Effects parameters -->
<!-- Effects parameters -->

Revision as of 14:02, 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 a table with the parameter names as the keys, and their values. If the specified effect name is not valid, an error is raised.

Parameters

Requirements

This template will be deleted.

Example

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

See Also