News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: How do I make music loop ?  (Read 2175 times)

0 Members and 1 Guest are viewing this topic.

Offline killer641561

  • AM teh Spodermen
  • Jr. Member
  • **
  • Posts: 3
  • Gender: Male
    • View Profile
How do I make music loop ?
« on: January 26, 2014, 12:01:16 PM »
Hey guys I'm new to the forum but not new to the game or modding.So I made a mod via LUA and used the command to play a different soundtrack.In this case SoundPlayStream("MS_BikeChaseHigh.rsm", 0.69999998807907) For some reason when the music ends it just reverts back to the default walking theme.How can I make it loop so it plays nonstop?

Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: How do I make music loop ?
« Reply #1 on: January 27, 2014, 03:07:27 AM »
Put this in the main function :

repeat
MUSIC COMMAND HERE
Wait(1000) -- in here put the length of the song in seconds, take a note tho that 1000 = 1 second.
Until not Alive
End

Offline killer641561

  • AM teh Spodermen
  • Jr. Member
  • **
  • Posts: 3
  • Gender: Male
    • View Profile
Re: How do I make music loop ?
« Reply #2 on: January 28, 2014, 07:52:58 PM »
Thanks bro.