SetSoundPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Sets custom sound position in the GTA world. ==Syntax== <syntaxhighlight lang="lua">bool setSoundPosition ( string sound, float x, float y, float z )</syntaxhighlight> ===Required...)
 
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
Sets custom sound position in the GTA world.
Sets custom sound seek position.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool setSoundPosition ( string sound, float x, float y, float z )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool setSoundPosition ( string sound, int pos )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' Name of the sound you want to play.
*'''sound:''' Name of the sound you want to play.
*'''x:''' A floating point number representing the X coordinate on the map.
*'''pos:''' An integet number representing the position you wish to seek to.
*'''y:''' A floating point number representing the Y coordinate on the map.
*'''z:''' A floating point number representing the Z coordinate on the map.
 


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





Revision as of 19:28, 26 December 2008

Sets custom sound seek position.

Syntax

bool setSoundPosition ( string sound, int pos )

Required Arguments

  • sound: Name 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