stop music

NED

Well-known member
I'm asking if there is a way to stop music (by script?)
This have to stay until level end.

The use is for win pose coding.

Thanks
 
nedflandeurse said:
I'm asking if there is a way to stop music (by script?)
This have to stay until level end.

The use is for win pose coding.

Thanks

just put the position of the music of victory pose in the correct location on the file level ...

######musica da vitoria#####

music data/music/fimfase.bor
at 2113


#######frase#######

spawn becook
flip 1
coords 0 240
at 2113

#######vitoria#####

group 1 1
at 2113

spawn  delay
coords  160 200
at  0

spawn  Victory1
coords  160 200
at  0

spawn  Victory2
coords  160 200
at  0

spawn  delay
health  2000
coords  160 200
at  0
 
@Ilu : great addition to the manual

@kmilloz : It definitly worked. Just as easy as it looks :)

Thanks guys.

dantedevil said:
I need something similar for my mod, but no stop, pause the music during fatality.
Then after the fatality, music continue.

And for pause music like i need?

Sorry, I don't know.
I'm pretty sure coders would say it's possible.
 
Yeah we could use some more control over music.

- Pause/unpause current track (it does this when u pause game, so the code is there)
- setting loop/no loop in levels (possible in scene files but not levels)
- set 'next track(s)' so instead of looping it plays then next music declared

example
Code:
music data/music/track.ogg
nextmusic data/music/track2.ogg
nextmusic data/music/track3.ogg
 
Back
Top Bottom