PlaySound: Difference between revisions
Jump to navigation
Jump to search
(Removing all content from page) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Client function}} | |||
Plays a specified sound for the local player. | |||
==Syntax== | |||
<syntaxhighlight lang="lua">sound playSound3D ( string sound, [ bool looped ] )</syntaxhighlight> | |||
===Required Arguments=== | |||
*'''sound:''' Name of the sound you want to play. (sent to client via file xml tag in meta) | |||
===Optional Arguments=== | |||
{{OptionalArg}} | |||
*'''looped:''' True if looped, False otherwise. | |||
===Returns=== | |||
Returns a sound element if the sound was successfully played, ''false'' otherwise. | |||
==Example== | |||
TODO | |||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | |||
--TODO | |||
</syntaxhighlight> | |||
</section> | |||
==See Also== | |||
{{audio functions}} |
Revision as of 19:27, 26 December 2008
Plays a specified sound for the local player.
Syntax
sound playSound3D ( string sound, [ bool looped ] )
Required Arguments
- sound: Name of the sound you want to play. (sent to client via file xml tag in meta)
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
- looped: True if looped, False otherwise.
Returns
Returns a sound element if the sound was successfully played, false otherwise.
Example
TODO
Click to collapse [-]
Client--TODO
See Also