Bully-Board

Bully Modding Section => Script Modding => LUA Scripting Help => Topic started by: killer641561 on January 26, 2014, 12:01:16 PM

Title: How do I make music loop ?
Post by: killer641561 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?
Title: Re: How do I make music loop ?
Post by: c00ld0c26 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
Title: Re: How do I make music loop ?
Post by: killer641561 on January 28, 2014, 07:52:58 PM
Thanks bro.