Jump to content
lk11

multi sirens

Recommended Posts

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...