U
utunnels
Guest
New sound sample functions:
playsample(sampleid); //play sample
playid = openborvariant("sample_play_id"); // get latest playid,so call right after playsample
.....
channel = querychannel(playid);
// find channel that is playing that sample
if(channel>=0)
{
stopchannel(channel); //stop
}
playsample(sampleid); //play sample
playid = openborvariant("sample_play_id"); // get latest playid,so call right after playsample
.....
channel = querychannel(playid);
// find channel that is playing that sample
if(channel>=0)
{
stopchannel(channel); //stop
}