Thread: MP3 Player Help
View Single Post
MP3 Player Help
Old
  (#1)
flaco337 is Offline
Junior Member
 
Posts: 3
Join Date: Jun 2002
  Send a message via MSN to flaco337 Send a message via Yahoo to flaco337  
Default MP3 Player Help - 03-07-2003, 03:18 AM

OK I made a script that plays MP3's in the game, you hit a buttonlike ] and it plays an MP3, or if one is playing, it plays the next one. If you hit [ it plays the previous song, and 0 stops the music. It will only play one song, then I have to hit the ] to start the next song, or [ for the previous song. Now, how could I get it where it would play all the songs in order without having to hit another button. Is there anyway to assign a cvar in the game, and the use the .scr filetype (including the proper syntax) to execute for, if and while statements that were dependant on the created cvar which would be 1 if the MP3 was playing and 0 if it wasn't (implying the song had finished)? My current problem, is that I have to wait until the song finishes to execute the next song or else things get screwed up. Or is there a way to create a cvar whose value is dependant upon the state of one of the audio channels? Any help would be appreciated.

Thank you,
Flaco
  
Reply With Quote