Jump to content

Recommended Posts

I have a music loop eventhandler set up in a trigger.  

It works fine the code is:

1 fademusic 1; ehID = addMusicEventHandler ["MusicStop", {playMusic ["Track2", 2];}];playMusic ["Track2", 2];  

And upon Deactivation it fades the music to 0.  Works good.  

However.  I have various other triggers on objective zones which fade back in the music using different tracks.  

Those work fine too but after they finish playing the music is still at fade 1 and it resumes the eventhandler for the loop.  

 

So basically I want this loop to only function inside of this trigger.  How do I terminate this loop upon deactivation and will it reactivate on a repeatable trigger as it should after deactivation?

Any help is greatly appreciated.  

 

For anyone wondering its for a type of safe house like Resident Evil style where you enter it and your cozy warm piano loop plays and reassures you that everything is going to be alright. ;)  

So it needs to be repeatable in and out type of deal. 

Thanks.  

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

×