AmbientStop doesnt work
Posted: May 24th, 2007, 3:55 pm
hi i wanna stop the ambientsound and start it again after playing another sound
Code: Select all
haloroom()
{
speakerhalo = getent ("speaker_halo", "targetname");
halotrig = getent ("halo_trigger", "targetname");
while(1)
{
halotrig waittill ("trigger");
AmbientStop(2);
speakerhalo playsound("lev_facilities_sound7");
wait(117);
AmbientPlay("ambient_mp_lev_facilities");
}
}