The Dink Network

Reply to Re: kill sound

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 9th 2003, 04:02 PM
wizardg.gif
Paul
Peasant He/Him United States
 
Does no one read the manual? It's not the best piece of documentation ever written (by a longshot) but does explain how to do this.

There are two ways.

What Striker said:
&holybejebus = playsound(56, 22050, 0, 0, 1);
sound_set_kill(&holybejebus);
(obviously &holybejebus would have to be global if these are not in the same script)

and

&holybejebus = playsound(56, 22050, 0, 0, 1);
sound_set_survive(&holybejebus, 1);
kill_all_sounds();

Because as dinkc.txt explains, kill_all_sounds really only kills all "survive" sounds.