sound effects
Posted: Wed May 14, 2008 11:49 pm
How do you play a random sound from a set of sounds when an actor gets hit?
soundchoose = random(3);
switch (soundchoose){
case 0:
PlaySound("data/sound.wav", 1, 1, 1);
break;
case 1:
PlaySound("data/sound2.wav", 1, 1, 1);
break:
case 2:
PlaySound("data/sound3.wav", 1, 1, 1);
break;
}