Stop music when leaving cell

Post » Mon Nov 03, 2014 6:31 am

Hey, I'm using this script to play a specific track in a cell

Begin CM_Templemusic  float timer If ( CellChanged == 1 )Set Timer to 0ReturnEndif if ( timer <= 0 )StreamMusic "Special/Mood_Temple.mp3"set timer to 216Endif set timer to timer - GetSecondsPassed End

Whenever I leave the cell, the music continues playing though. How can I change the script so the track stops when you leave the cell and begins playing the default explore music again?

I've been looking over some other scritps but I'm not sure where to place the lines in this one to make it work properly.

User avatar
Chica Cheve
 
Posts: 3411
Joined: Sun Aug 27, 2006 10:42 pm

Return to III - Morrowind

cron