Jump to content
Sign in to follow this  
global corps

How do you stop a trigger effect?

Recommended Posts

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

add a second trigger with

Condition : !alive radio

trigger effects- music - silence smile_o.gif

Share this post


Link to post
Share on other sites

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×