Posted By: Random
Random sounds - 02/08/10 15:12
Does sombody know how to make random sounds?
I meen here is a normal sound code:
SOUND* snd_hurt = "hurt_1.wav";
function hit_obj_meat()
{
if (event_type == EVENT_SHOOT)
{
snd_play(snd_hurt,55,0);
}
}
But what if when you whant to use random sounds:
snd_play(snd_hurt1,55,0); or snd_play(snd_hurt2,55,0);
How can I do that?
I only wright in lite-c.
I meen here is a normal sound code:
SOUND* snd_hurt = "hurt_1.wav";
function hit_obj_meat()
{
if (event_type == EVENT_SHOOT)
{
snd_play(snd_hurt,55,0);
}
}
But what if when you whant to use random sounds:
snd_play(snd_hurt1,55,0); or snd_play(snd_hurt2,55,0);
How can I do that?
I only wright in lite-c.