Forum

> > CS2D > Scripts > sv_sound command wont work?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch sv_sound command wont work?

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt sv_sound command wont work?

Arne
User Off Offline

Zitieren
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...

alt Re: sv_sound command wont work?

DrPyromatic
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht