Bully-Board
Bully Modding Section => Script Modding => LUA Scripting Help => Topic started 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?
-
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
-
Thanks bro.