Home   Help Search Login Register  

Author Topic: Custom sound headache!!!!!  (Read 1417 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
Custom sound headache!!!!!
« on: 21 Feb 2011, 19:32:00 »
Can anyone tell me what im doing wrong? Ive searched forums and from what I can see Ive done all I should have?

I have a file in my missions folder called "sounds"
In there ive got two ogg files....crowd and scream.

In my description.ext ive got .....

class CfgSounds
{
sounds[] = {};
class scream
{
name = "";
sound[] = {"\sound\scream.ogg", 1, 1};
titles[] = {};
};

class crowd
{
name = "";
sound[] = {"\sound\crowd.ogg", 1, 1};
titles[] = {};
};

};


But when I put <playsound "crowd" or "scream">
Nothing happens?

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Re: Custom sound headache!!!!!
« Reply #1 on: 21 Feb 2011, 21:18:40 »
You need to change the folder name to "sound" or the root to "sounds" (-> sound[] = {"\sounds\scream.ogg", 1, 1};).

Offline stephen271276

  • Members
  • *
Re: Custom sound headache!!!!!
« Reply #2 on: 21 Feb 2011, 21:26:39 »
So simple when you know how.... thanks man

Aaaaargh!

I got those two working but then added another ogg file called "thank" to my sound file.
I went into my desc.ext and just copy and pasted your above example but changed the words "scream" to "thank".
But when I put <playsound "thank"> into a trigger it just says <file "sound" not found>????
« Last Edit: 22 Feb 2011, 09:07:35 by stephen271276 »