Code: Select all
surface.play_sound
Code: Select all
surface.play_sound
Code: Select all
/c game.player.surface.play_sound{path='utility/default_manual_repair',position=game.player.position}
I'm triggering it until repairing stops. The sound eventually stops, but a few seconds after the repairing stops, which isn't the case for native repairing.eradicator wrote:Only plays once for me. Are you sure you're not triggering it again yourself?Code: Select all
/c game.player.surface.play_sound{path='utility/default_manual_repair',position=game.player.position}
I'm using the native repair sound, so that's not an option here.DaveMcW wrote:I don't think it's possible to stop a sound in the middle of playing. The best you can do is keep your sound files short.