Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Animations with sound  (Read 1353 times)

0 Members and 1 Guest are viewing this topic.

Kaliyuga

  • Guest
Animations with sound
« 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:

Kaliyuga

  • Guest
Re:Animations with sound
« Reply #1 on: 08 Jul 2003, 00:34:53 »
 Problem Solved