lk11 Posted October 11, 2009 Report Share Posted October 11, 2009 is it possible to set up the sirens so that there will be a difrent siren evry time Link to comment Share on other sites More sharing options...
SirMoo Posted October 12, 2009 Report Share Posted October 12, 2009 Try modifying the LASiren.script - More simple version of the random code Hoppah provided in my LAChase post. I was going to do this as well... but have not yet. If there is a logic problem with this someone say so?int random = Math::rand()%3; if (random == 0) { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren01.wav", CarPos, true); } else (random == 1) { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren02.wav", CarPos, true); } else if (random == 2) { soundID = Audio::PlaySample3D("mod:Audio/FX/Sirens/Siren03.wav", CarPos, true); } }} Link to comment Share on other sites More sharing options...
lk11 Posted October 12, 2009 Author Report Share Posted October 12, 2009 nevermind i figured it out thanks Link to comment Share on other sites More sharing options...