Jump to content
Sign in to follow this  
Winters1807

Music from a radio

Recommended Posts

Hi, a little problem

i have placed a custom sound in my mission folder in the /sounds directory

and in my description.ext this is the code

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

{

sounds[] =

{

radio

};

class radio

{

name = "radio";

sound[] = {"\sound\radio.ogg", 0.001, 1.0};

titles[] = { };

The thing is, i want to make this sound play from a particular object, dynamically, so, if you move closer, it gets louder, move farther away, it gets quieter, but i am struggling on how to do this, can anyone help?

cheers

Winters

Share this post


Link to post
Share on other sites

class CfgSounds

{

sounds[] =

{

radio

};

class radio

{

name = "radio";

sound[] = {"\sound\radio.ogg", 0.001, 1.0};

titles[] = { };

}; //I think you are missing these.

};//If so, adding these may help out.

This may not be the best place to ask, but I'm not sure.

Try this forum, they seem to answer lightening fast.

OFPEC forum:

http://www.ofpec.com/forum/index.php?board=80.0

Share this post


Link to post
Share on other sites

There is a reason why we have an editing forum here.

Closing.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×