Forum

> > Carnage Contest > Playsound LUA Command Not Working Properly
Forums overviewCarnage Contest overviewLog in to reply

English Playsound LUA Command Not Working Properly

2 replies
To the start Previous 1 Next To the start

old Playsound LUA Command Not Working Properly

AbAeterno
User Off Offline

Quote
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!

old Re: Playsound LUA Command Not Working Properly

DC
Admin Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to replyCarnage Contest overviewForums overview