GetSoundPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
Get a sound seek position.
This function is used to return the current seek position of the specified [[sound]] element.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">int getSoundPosition ( element sound )</syntaxhighlight>  
<syntaxhighlight lang="lua">int getSoundPosition ( element theSound )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' a sound element.
*'''theSound:''' The [[sound]] element which seek position you want to return.


===Returns===
===Returns===
Returns an ''integer'' indicating the position of the sound. (times by 1000 to get seconds)
Returns an [[int]]eger value indicating the seek position of the [[sound]] element in milliseconds.


==Example==  
==Example==  

Revision as of 20:49, 26 December 2008