Jump to content
Sign in to follow this  
SamGv

problem with music = false

Recommended Posts

I am using custom music using this script:

while {music} do {

playsound "Song5";

sleep 75;

};

though I've modified it some for each song, I've had trouble trying to turn it off when I want, or at all. I've tried waypoints and triggers, even !alive NAME and then in ON ACT I used music = false, nothing happens.

How do I make the music stop or fadeout when I want it to? I am using a continual loop, but want it to stop after a certain objective is accomplished.

Share this post


Link to post
Share on other sites

playSound only starts the music.

Your script will restart it every 75 seconds.

What you need now is something that calls <music=false; 5 fadeMusic 0> (fades music to zero in 5 seconds)

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  

×