Making music keep playing on respawn

Avatar
srs bsnss
552 Posts
Posted Jan 10, 2013
So, does anybody know how to do this?
I've made a map where the player can die, but the only problem is that when they respawn, the music (which is activated by a math counter, which is added to by a trigger_once at the entrance) doesn't come on again. I'm using logic_autosaves.
Any help would be greatly appreciated.
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Jan 10, 2013
Replied 2 hours later

This thread might help:

post63896.html?hilit=music%20dies

Avatar
srs bsnss
552 Posts
Posted Jan 11, 2013
Replied 19 hours later
I had a read through that one, but it seems to refer more to when you're using a logic_auto to start the music. Thanks for mentioning it though.
Avatar
ChickenMobile
2,460 Posts
Posted Jan 11, 2013
Replied 5 hours later
Ok so what I was more referring to was the fact that they start music at the same time it triggers the save. I did this in tc_vitrified and the music starts up after every time you die.
Avatar
josepezdj
2,386 Posts
Posted Jan 11, 2013
Replied 1 hour later

srs bsnss wrote:
I had a read through that one, but it seems to refer more to when you're using a logic_auto to start the music. Thanks for mentioning it though.

Well, you can also trigger your ambient_generic via a trigger_once or multiple, and include inside it the output to save the game right in the same moment than you trigger the music or just some milisecs after it in order to save the music's status.

Tbh I also have problems with this to work as I would like it to. Manyy times I am respawned and there's no music :sad:

Avatar
srs bsnss
552 Posts
Posted Jan 11, 2013
Replied 5 minutes later

ChickenMobile wrote:
Ok so what I was more referring to was the fact that they start music at the same time it triggers the save. I did this in tc_vitrified and the music starts up after every time you die.

Oh, that makes sense. So the same output that calls the "Save" function also triggers the ambient_generic?

EDIT: Well I tried that and it worked, the music starts again whenever the map loads. The only problem is that the music restarts whenever I trigger the logic_autosave.

...I think I've missed something.

Advertisement
Registered users don’t see ads! Register now!
Avatar
srs bsnss
552 Posts
Posted Jan 22, 2013
Replied 11 days later
I've just realised I've made a fairly substantial oversight. Logic_auto has a "OnLoadGame" output available. :notwant:

Well, that resolves that.