Tactical Anders Posted July 2, 2015 Report Share Posted July 2, 2015 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 More sharing options...
0 Sp4rkY Posted July 2, 2015 Report Share Posted July 2, 2015 ofcourse, you have to call the sound with playSound "Sound1"; instead of using the file-extension... :) and keep an eye of upper and lowercase cheers Link to comment Share on other sites More sharing options...
0 Tactical Anders Posted July 2, 2015 Author Report Share Posted July 2, 2015 Seriously ?? If this works you have my gratitue and ill fall back for some serious selfharm bangheadtothewall style :) Link to comment Share on other sites More sharing options...
0 Tactical Anders Posted July 2, 2015 Author Report Share Posted July 2, 2015 Hmm.. changed it and still nothing =/ Does all its vital tasks, extinguishes vehiclefires, send hint but doesnt play the friggin sound.. =/ Link to comment Share on other sites More sharing options...
0 Tactical Anders Posted July 2, 2015 Author Report Share Posted July 2, 2015 Okay i changed the playSound to player say ["Sound1", 100]; instead and now it works. Question is, is that sound heard by everyone near me or do i have to use another function for that ? Link to comment Share on other sites More sharing options...
0 DirtySanchez Posted July 2, 2015 Report Share Posted July 2, 2015 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 More sharing options...
0 Tactical Anders Posted July 2, 2015 Author Report Share Posted July 2, 2015 Yeah i got it working, and ill set the proper dir's up wheni got it working like i want to. player say3D ["Sound1", 100]; for global sound, works like a charm. Link to comment Share on other sites More sharing options...
Question
Tactical Anders
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now