Jump to content
Sign in to follow this  
Koni

unit saying a sound file

Recommended Posts

This, I thought would have been easy to do, but no...

I simply want a sound file to be played globaly, so the sound does not fade away if the player is moving quickly, which is the case if I play this sound file from a trigger effect.

I have a sound file called "missionstatment", it is entered in the description file correctly as a sound in a sounds folder, and as a sound in the main folder

class misstatment

{

name = "mission statment";

sound[] = {"sounds\missionstatment.ogg", db+10, 1.0, 900};

titles[] = {0, ""};

&&

class misstat2

{

name = "Mission statment 2";

sound[] = {"missionstatment.ogg", db+10, 1.0, 900};

titles[] = {0, ""};

Both play perfectly if activated from a trigger as a voice effect, but does fade out slowly if the player is traveling quickly away from where the trigger is placed on the map, but it dosen't seem to be found if I try playing the file as a sound a unit actually says.

I have used this so far.

Trigger set to fire, on activation I've tried

(units player select 1) say ["missionstatment",5] and that comes up with "cannot find sound "missionstatment"

Tried...

player say2D missionstatment

player say2D "missionstatment"

player say2D "missionstatment.ogg"

player say2D "sounds\missionstatment.ogg"

player say2D "sounds\missionstatment"

Everything I have tried when trying to get a unit or the player to say the sound file come up with cannot find sound "missionstatment"

Any help please :)

Share this post


Link to post
Share on other sites

Ahh, brilliant.

Been tearing my hair out on that one for ages, thanks alot Myke

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  

×