ID:270854
 
When I make a verb to play music, how would I make a verb to stop it?
Stopping music is like playig music except that the music file should be null.
Ex:
mob/verd/Stop_Music()src<<sound(null)


- GhostAnime
In response to GhostAnime
Thanks.


Edit-] If a song was playing, and a player tryed to overlap it, how would I say a song was already playing o.0, or if a player was listening to his own song (on the game) and someone played a song for the world.
In response to Masuko Shintaro
Bump.
In response to Masuko Shintaro
Bump again. >_>
In response to Masuko Shintaro
Hmmm...well it's really all about fiddling with variables. But I'm lazy and don't feel like explaining right now. Call me useless if you like.
In response to Masuko Shintaro
Masuko Shintaro wrote:
Thanks.


Edit-] If a song was playing, and a player tryed to overlap it, how would I say a song was already playing o.0, or if a player was listening to his own song (on the game) and someone played a song for the world.

You can't accurately predict this unless you at least know how long the song plays (then you can set a variable and <code>spawn()</code> your way out with the length).

So, yeah, you can't. Either you stick to guessing the length, or you rely on the player to provide the length for you. (of course, a player could input a number like "99999999999" which - although blockable - would prevent people from playing songs 'forever')