Wkboy714 Posted August 27, 2014 Report Share Posted August 27, 2014 Edit: Never mind, I've figured it out. Thread is redundant. Hello all, I understand that the default LA Siren script chooses randomly between two siren files to play when activating the siren script. For my private mod, I am trying to edit this so that it randomly chooses from three (or more) audio files. I imagine the edit to be a pretty simple one but I'm not sure what I need to change - I'm pretty new to scripting. I'd appreciate any help! Am I thinking along the right lines with something like this? int random = Math::rand()%3; if (random == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren01.wav", CarPos, true); if (random == 1) { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren02.wav", CarPos, true); } else { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren03.wav", CarPos, true); }Edit: So I tested that script and it works so far as choosing between the three of them. But the problem is if it chooses Siren01, the siren continues looping forever even after I turn the sirens off. Why? Quote Link to comment Share on other sites More sharing options...