Jump to content
Sign in to follow this  
5133p39

my sound addon makes other sounds

Recommended Posts

I have simple addon containing ONLY the following:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches {

class test_sounds {

weapons[] = {};

units[] = {};

requiredVersion = 1.96;

};

};

class CfgSounds {

sounds[] = { test_sound1, test_empty };

class test_sound1 {

name = "test_sound1";

sound[] = {"\test_sounds\test_sound1.wss", 0.0005, 1.0};

titles[] ={};

};

class test_empty {

name = "test_empty";

sound[] = {};

titles[] ={};

};

};

It works - the test_sound1 is played, but somehow it makes not to work the sirene sound (SGS_mx_zvuk) in the gaz24mx addon.

When i place the police car in map editor, run the mission, and try to turn on the sirene, it says it can't find the sound "SGS_mx_zvuk".

...but when i test the gaz24mx addon without my sound addon - it works.

Share this post


Link to post
Share on other sites

SOLVED

The <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sounds[] = { zvuk }; cannot be inside cfgSounds, but inside

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class cfgPatches {

class myAddon {

...here...

...now it works.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×