sv_sound command wont work?
6 replies



03.01.11 12:23:37 pm
I was trying to make a lua that opened a menu and you could choose a sound, the menu works just fine now, but it wont play the sounds.
Here's part of the code:
I typed in console:
and the sound played...
Here's part of the code:
Code:
1
2
2
if button==1 then
parse ("sv_sound \"phant/wind.ogg\"")
parse ("sv_sound \"phant/wind.ogg\"")
I typed in console:
Code:
1
sv_sound phant/wind.ogg
and the sound played...

It would be useful when you say if a error message in the console shows and post it here.
Or:
I didn't test it, Iam not sure if it works.
Code:
1
2
2
if button==1 then
parse ('sv_sound \"phant/wind.ogg\"')
parse ('sv_sound \"phant/wind.ogg\"')
Or:
Code:
1
2
2
if button==1 then
parse ('sv_sound "phant/wind.ogg"')
parse ('sv_sound "phant/wind.ogg"')
I didn't test it, Iam not sure if it works.
I just checked the samples, what I wrote is wrong.
But anything should work, maybe something with the other script is wrong.
But anything should work, maybe something with the other script is wrong.



