Jump to content
_Cody_

Script for character

Recommended Posts

Hello today i write here because i need help with scripts.

I want a character to speak. I have created the "description.ext" file with this:

 

class CfgSounds
{
    //List of sounds (.ogg files without .ogg extension)
    sounds[]  = {msj1};
    
    
    //Definition for each mission editor
    class msj1    
    {
        name = "mensaje 1"; // Name for mission editor
        sound[] = {\SonidosRadio\audio1.ogg};
        titles[] = {};
    };
};

 

to activate the unit say the sound, i use a trigger with :

"  On Act: a1 say "msj1";  "

 

but the problem is when i am in the game and the trigger is activated the unit doesnt say the sound 

 

If anyone can help me i would be very grateful

Share this post


Link to post
Share on other sites

try

     sound[] = {"\SonidosRadio\audio1.ogg",15,1,100};

15 is the volume,
1 is the pitch

100 is the max distance from source where sound will be heard
and the path to your sound needs to be between quotes ""

  • Like 1

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

×