global corps 0 Posted July 7, 2004 i have a radio object called (radio) in my mission, and a trigger: con; alive radio {effects: trigger; 'music' ,And i need the trigger to stop playing the music, if the radio gets shot or blown up. I tryed to put (t4=true) in the activation and another trigger, con;!alive radio && t4 {act;t4=false, but that didnt work. I even tryed to group the trigger to the radio. Can anyone help me? Share this post Link to post Share on other sites
Blanco 0 Posted July 7, 2004 add a second trigger with Condition : !alive radio trigger effects- music - silence Share this post Link to post Share on other sites
MrZig 0 Posted July 7, 2004 When you don't want the music to play, simply put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">playmusic "" -I'm pretty sure that works. Share this post Link to post Share on other sites
global corps 0 Posted July 7, 2004 the problem is, i'm not useing Music, i'm using Sounds:trigger:'music' =( Share this post Link to post Share on other sites
CrashnBurn 0 Posted July 7, 2004 This can be handled with just the one trigger you used to start the music. Make the trigger repeating. This is necessary to toggle it off later. The condition for the trigger should be: alive radio The music will start at mission load since the radio is alive then. In the deactivation put: 0 fademusic 0 *Note that the music will continue to finish its' current loop before stopping (small Bohemia programming error me thinks). If you want to have music later in the mission you need to fade it back in: 0 fademusic 0.5; playmusic "track5" The volume part is 0.5 which is default, NOT 1. If you set the volume to '1' the music will be way, way loud. Furthermore, if you fade the music to a volume of 1 and the player has his music volume set high in the menu options, it's conceivable that you could damage their speakers. At the very least they'll be extremely annoyed with you and flames will arrive at your inbox for sure. Share this post Link to post Share on other sites
global corps 0 Posted July 8, 2004 Thanks for the help guys.... but i decided to scrap it from my mission. it didnt work as i expected. Share this post Link to post Share on other sites