OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: SharkDog on 07 Jun 2009, 17:47:00
-
Anyone got custom sounds to work?
I tried like in ofp with ogg format and adding it to the description.ext
But it seems it needs to be a differant format or something?
Cheers,
Rutger
-
Indeed ogg still works..
Some things to remmeber..
Any changes to the description.ext, its always a good practice to save the mission before previewing. This ensures the description.ext is re read on next preview. Especially important with dialogs but I assume it applies to configs or any classes in the description.ext.
In my example..
class CfgMusic
{
tracks[]={};
class JPTrack1
{
name = "JohnPilkey Track1";
sound[] = {"\sound\file0036.ogg", db+5, 1.0};
};
};
A good way to check if your sound is in the description.ext config and read properly is to open up the effects button on a trigger and you should see your track listed at the bottom. such as mine in the image. Do this before actually playing the sound file. If you happen to screw something up its likely you will have to restart the game
You can also read through some of the tutorials we have. Tutorials (http://www.ofpec.com/tutorials/index.php?action=show&id=14&page=32)
-
Thanks, that helped,
Cheers!