Jump to content
Sign in to follow this  
alef

Using addon sounds in mission

Recommended Posts

Hi,

my sounds addon config.cpp:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches {

class say_mod {

units[] = {};

weapons[] = {};

requiredAddons[] = {};

requiredVersion = 1.08;

version = 1.0;

};

};

class CfgSounds

{

sounds[] = {Recall};

class Recall

{

name = "Recall";

sound[] = {"\say_mod\Recall.ogg", db-0, 1.0};

titles[] = {0};

};

};

Recall.ogg is at the same directory level as config.cpp.

I install the pbo as @say_mod, and run ArmA.exe -mod=@say_mod.

My mission description.ext

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

sounds[] = {Recall};

class Recall {

name="Recall";

sound[]={"\say_mod\Recall.ogg", db+0, 1.0};

titles[]={0};

};

};

My player just init playSound "Recall", but doesn't listen any sound. But if I put a dir Sound in the mission with Recall.ogg and change description.ext "\say_mod\Recall.ogg" to "Recall.ogg" (or "\Sound\Recall.org"), it works.

Where <s>are</s> were my faults?

Thanks,

alef

EDIT: solved, just removed its CfgSound class in description.ext.

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  

×