• About sound.Play
    4 replies, posted
Hey guys, I wanted to make a sound playing on client but at the same time I wanted to be able to control the volume of that sound so If i use this: [LUA] sound.Play( string Name, Vector Pos, number Level, number Pitch, number Volume ) [/LUA] I can control the volume but can't make it sound as good like this does [LUA] surface.PlaySound( string soundfile ) [/LUA] , because u need a vector Is there any way to make "sound.Play" sound like surface.PlaySound does to Clients? Thanks for reading :)
Use CreateSound if you want to change the volume/pitch during playback.
[QUOTE=Robotboy655;46954268]Use CreateSound if you want to change the volume/pitch during playback.[/QUOTE] But isn't CreateSound like this? [LUA] CreateSound( Entity targetEnt, string soundName ) [/LUA]
Yes, it returns an object that you can use to manipulate the sound. [url]http://wiki.garrysmod.com/page/Global/CreateSound[/url]
[QUOTE=Robotboy655;46954512]Yes, it returns an object that you can use to manipulate the sound. [url]http://wiki.garrysmod.com/page/Global/CreateSound[/url][/QUOTE] Didn't notice that :D Thank You :)
Sorry, you need to Log In to post a reply to this thread.