GetSoundLength: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Get the sound length. ==Syntax== <syntaxhighlight lang="lua">bool getSoundLength ( string sound )</syntaxhighlight> ===Required Arguments=== *'''sound:''' Name of the sound. ===...)
 
Line 4: Line 4:


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool getSoundLength ( string sound )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool getSoundLength ( element sound )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' Name of the sound.
*'''sound:''' a sound element.


===Returns===
===Returns===

Revision as of 19:32, 26 December 2008

Get the sound length.

Syntax

bool getSoundLength ( element sound )

Required Arguments

  • sound: a sound element.

Returns

Returns an integer indicating the length of the sound in mini seconds. (times by 1000 to get seconds)

Example

TODO

Click to collapse [-]
Client
--TODO

See Also