Forum

> > CS2D > Scripts > sv_sound command wont work?
Forums overviewCS2D overview Scripts overviewLog in to reply

English sv_sound command wont work?

6 replies
To the start Previous 1 Next To the start

old sv_sound command wont work?

Arne
User Off Offline

Quote
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:
1
2
if button==1 then
parse ("sv_sound \"phant/wind.ogg\"")
I typed in console:
1
sv_sound phant/wind.ogg
and the sound played...

old Re: sv_sound command wont work?

DrPyromatic
User Off Offline

Quote
It would be useful when you say if a error message in the console shows and post it here.
1
2
if button==1 then
parse ('sv_sound \"phant/wind.ogg\"')
Or:
1
2
if button==1 then
parse ('sv_sound "phant/wind.ogg"')
I didn't test it, Iam not sure if it works.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview