03-17-2013, 11:34 PM
Create Sound object in game. Name it "BGM" and put it directly in the world.
Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.
Whenever you want it to play, call this line somewhere in a script:
game.World.BGMtop()
sleep(0.1)
game.World.BGM:play()
If you just want it to play in your server, type "game.World.BGMtop() game.World.BGM:play()" into the Lua console of the server.
Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.
Whenever you want it to play, call this line somewhere in a script:
game.World.BGMtop()
sleep(0.1)
game.World.BGM:play()
If you just want it to play in your server, type "game.World.BGMtop() game.World.BGM:play()" into the Lua console of the server.