Jump to content
  • 0

playSound issue...


Tactical Anders

Question

Heya guys!

 

 

Ive been working on my very first script since this morning and with alot of googling and alot of bohemia wikitime i got it running 99% as i want it!

 

BUT....

 

I cant get a bloody sound to play.

 

I have a addAction set up with simple IF, THEN, ELSE statments.

 

In the THEN statment i have the (Within curlybrackets) ---->   playSound "sound1.ogg"

 

The file is contained within the root for now with the exact same filename and format.

 

Description.ext

class CfgSounds {

sounds[] = {};

        class Sound1
        {
        name = "Sound1";
        sound[] = {"Sound1.ogg", 0, 1};
        titles[] = {};
        };
};

I keep getting the errormessage ingame that the Sound1,ogg" cannot be found.. i just cant get my head around this one =/

 

Appreciative of any help, and even if the script is offering little help in Actual Epoch id be glad to share it when done and tested properly.

 

Cheers!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I suggest putting the sound in a sound folder.

also make it sounds []={sound1};

Edit: this is how I have my sounds set up

 

class CfgSounds{	
class bodies	{		name="bodies";		sound[]={scripts\sounds\bodies.ogg,0.6,1};		titles[] = {};	};};
I now notice I don't even use the sounds line in the main.

and I don't use "" in the .ogg line.

I'm sure you will get it right this time

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...