Jump to content
Sign in to follow this  
Gunnykat

Working on sound Script

Recommended Posts

I have a Triger to start some custom music. How can I make a scrip to turn it off when exiting a chopper named ch4 chopper.

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {song};


class song
{
name = "song"; // Name for mission editor
sound[] = {\sound\song.ogg, db+1, 1.0};
titles[] = {};
};

};

This is inside triger thats activated by Blufor.

PlaySound "Song"

Share this post


Link to post
Share on other sites

maybe have a dummy song just 1 second silence and play that one when you want it to end..

Share this post


Link to post
Share on other sites

it might be better doing cfgMusic, and using playMusic, then when not in the chopper you can use 1 fademusic 0

this will fade music in 1 seconds to volume of 0

Share this post


Link to post
Share on other sites

I was really hopeing to make it stop on exit of the chopper.

Share this post


Link to post
Share on other sites

edit:

No way to do it. As an alternative, you can attach an invisible H to the player, make the H say the sound, and when you want to stop the sound, delete the H or set its damage to 1.

and use say instead of playsound...

Edited by Demonized

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  

×