The Dink Network

How to kill a sound? [NT]

January 10th 2003, 11:46 AM
spike.gif
January 10th 2003, 11:48 AM
spike.gif
How to kill a sound? (long, music file)

sound_set_kill(sound bank) doesn't work. Also the sound I want to kill is not a survive sound.

Thanks in advance,

EV
January 10th 2003, 12:05 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
You know how to use sound bank variables, right?

int &my_sound_bank = playsound();

sound_set_kill(&my_sound_bank);

And that should work... with proper numbers in playsound(), of course.
January 11th 2003, 12:48 AM
spike.gif
: int &my_sound_bank = playsound();

: sound_set_kill(&my_sound_bank);

: And that should work... with proper numbers in playsound(), of course.

Nope, doesn't work. Is there any requirements where in the script that should be? (I must kill a sound when clicked start_3.c button, which skips the intro) e.g. game hasn't really "started" yet, it is still in the mode 1.
January 11th 2003, 08:47 AM
wizardg.gif
Paul
Peasant He/Him United States
 
Care to share the relevant scripts?

January 12th 2003, 04:00 AM
spike.gif
: Care to share the relevant scripts?

Not needed anymore, I got the script to work. The problem got something to do with globals. (can't quite say what, I just copied the globals from main Dink over those that were in my DMod, and it started working) Quite odd though, as I haven't edited any of the important globals. :| (Must've been mistake, dohh)