Blockland Forums > Suggestions & Requests

OnMusicEnd event.

Pages: (1/2) > >>

awesomebread:

An event where when a song ends, another takes its place.

randomtroll39:

Eh I would make it if I could,but I can't

WALDO:

I don't think this is possible. Music isn't handled by the server, the clients determine when to play the music once they are in-range of the music brick. For example: One client can play the music at a different time than another client. You would have to re-work the music system to make this work.

MARBLE MAN:


--- Quote from: WALDO on June 08, 2013, 03:57:06 PM ---I don't think this is possible. Music isn't handled by the server, the clients determine when to play the music once they are in-range of the music brick. For example: One client can play the music at a different time than another client. You would have to re-work the music system to make this work.

--- End quote ---
we can guess
%duration = alxGetWaveLen(%file);

WALDO:


--- Quote from: MARBLE MAN on June 11, 2013, 10:01:38 PM ---we can guess
%duration = alxGetWaveLen(%file);

--- End quote ---
You would have to make sure that all the clients start hearing the music at the same time though. And even then, they can't always be in-sync.

Are there any client commands that tells where the client is at in the song? If those commands exist, then someone could create a server-sided add-on that talks to a client-sided add-on so it makes sure everyone is in-sync with each other, or something similar to that. Or someone could create a manual tick system that starts when the music starts playing. The real problem is, are there any commands to jump to any position of the song?

Pages: (1/2) > >>

Go to full version