GetSoundLength: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (fixed typo)
(getSoundLength returns a float in seconds, not int + ms)
Line 4: Line 4:


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">int getSoundLength ( element theSound )</syntaxhighlight>  
<syntaxhighlight lang="lua">float getSoundLength ( element theSound )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
Line 10: Line 10:


===Returns===
===Returns===
Returns an [[int]]eger value indicating the playback length of the [[sound]] element in milliseconds.
Returns an [[float]] value indicating the playback length of the [[sound]] element in seconds.


==Example==  
==Example==  

Revision as of 20:18, 28 August 2012