Forum

> > Carnage Contest > Playsound LUA Command Not Working Properly
ForenübersichtCarnage Contest-ÜbersichtEinloggen, um zu antworten

Englisch Playsound LUA Command Not Working Properly

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Playsound LUA Command Not Working Properly

AbAeterno
User Off Offline

Zitieren
Hello there everyone! I'm having some problems with the mission luas i'm doing
I wanna put another little music loop for my map.

In my script i'm using these:
1
labmusic=loadsfx("labbgm.ogg")
and this:
1
2
3
function customstart()
  playsound(labmusic,9,1)
end
Still the sound can't be heard. What am I doing wrong?

Thanks in advance!

alt Re: Playsound LUA Command Not Working Properly

DC
Admin Off Offline

Zitieren
double check the filename and the path.
is your sound really called "labbgm.ogg"? is it in the sfx-folder of carnage contest? it will not work if it is in your mission-folder for example!

if the name/path is correct: make sure that it is a real ogg file. get the freeware tool "Audacity" in case of doubt! load the sound there and export it as ogg again! ogg files exported with it always worked for me so far.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenCarnage Contest-ÜbersichtForenübersicht