Did you know that any object can be a sound emitter? Here’s a code snippet:
game.setObject("my-object-id", "my-map-id", {
sound: {
src: "my-audio-url",
volume: 1.0, // 0.0 to 1.0
maxDistance: 10, // range in tiles you can hear it from
loop: true, // if false, will play once when people enter the map, even if out of range
}
});
So to do this, you’re going to have to make an extension with this code snippet inside it. There are some good extension examples on [gathertown · GitHub]. (You can also use console commands to do this, although I’ve never tinkered with them personally and can’t give you advice there.)