SetSoundPosition: Difference between revisions

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


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool setSoundPosition ( string sound, int pos )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool setSoundPosition ( element sound, int pos )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' Name of the sound you want to play.
*'''sound:''' the element of the sound you want to play.
*'''pos:''' An integet number representing the position you wish to seek to.
*'''pos:''' An integet number representing the position you wish to seek to.


===Returns===
===Returns===
Returns ''true'' if the sound position was successfully moved, ''false'' otherwise.
Returns ''true'' if the sound position was successfully moved, ''false'' otherwise.


==Example==  
==Example==  

Revision as of 19:55, 26 December 2008

Sets custom sound seek position.

Syntax

bool setSoundPosition ( element sound, int pos )

Required Arguments

  • sound: the element of the sound you want to play.
  • pos: An integet number representing the position you wish to seek to.

Returns

Returns true if the sound position was successfully moved, false otherwise.

Example

TODO

Click to collapse [-]
Client
--TODO

See Also