GetSoundPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Code fix)
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
Get sound position in the GTA world.
Get a sound seek position.


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


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


===Returns===
===Returns===
Returns an''integer''s indicating the position of the sound in mini seconds. (times by 1000 to get seconds)
Returns an ''integer'' indicating the position of the sound. (times by 1000 to get seconds)


==Example==  
==Example==  

Revision as of 19:57, 26 December 2008

Get a sound seek position.

Syntax

int getSoundPosition ( element sound )

Required Arguments

  • sound: a sound element.

Returns

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

Example

TODO

Click to collapse [-]
Client
--TODO

See Also