OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Kaliyuga on 07 Jul 2003, 23:36:42

Title: Animations with sound
Post by: Kaliyuga on 07 Jul 2003, 23:36:42
 Now... I've been working on an addon of ours....

and wanting to add some custom sounds that will be played along with animations

 So I'm pretty clear on how to go about this..... my only problem is an error message saying the sound file wasn't found once I get the addon  in-game  and set off the animation.


Here are the relevant parts of my config.cpp:

Code: [Select]
class CfgRadio
{
   class ECLDive
    {
         sound[]={"\ECL_KL42otst\ECLDive.wav",db+10,1};
         name = "ECLDive";
      title = "";
    };
};

and

Code: [Select]
class UserActions
      {
         class OpenArm1
         {
            displayName="Dive";
            position="osa_arm1";
            radius=100.0;
            condition="true";
            statement="this say ""ECLDive""; this animate [""arm1"", 1]";
         };

the .wav file is named "ECLDive" and it is in the folder with everything else.


thanks in advance for any insight into this problem.
:cheers:
Title: Re:Animations with sound
Post by: Kaliyuga on 08 Jul 2003, 00:34:53
 Problem Solved