OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PRiME on 12 Sep 2002, 09:25:49

Title: Problem with CfgSFX
Post by: PRiME on 12 Sep 2002, 09:25:49
OFP crashes when I try and play the sound effect

this is whats in description file

class CfgSFX
{
   sounds[] = {};

   class click
   {
      name = "click";
      sound[] = {"click.ogg", db-10, 1.0};
      title = ;

};

the click.ogg is in /sound

Any ideas, Also will it work in MP?
Title: Re:Problem with CfgSFX
Post by: PRiME on 12 Sep 2002, 09:45:07
apparently its ment to be

class CfgSFX
{
        sounds[] = {"click"};
        class click
        {
                name = "click";
                sounds[]= {sound1};
                sound1[] = {"click.ogg", db-0,1,1,5,1,10};
                empty[] = {, , , , 1 , 5, 20};
        };
};

However im still having issues getting it to play ingame