Hi, I need help on this cog, I need it to play a song from a designated thing, then, when the thing is damaged, play a different song, this is what I have:
So far, it just plays both songs at the same time
can somebody please help me fix this, this is for my current level, in production. I also need it so that once the thing(speakers) is damaged, it creates sparks coming from the speakers.
Thanks in advance, Dingus Fett.
Code:
# Jedi Knight Cog Script # # 00_CANTINASONG.COG # # Plays the cantina song from a location # Made for the Dark Order's Training Base level # # [DingusFett] # # (c) 2001 DingusFett's Productions symbols message startup message damaged sound song sound broken thing speakers flex volume flex mindist=0 flex maxdist end # ======================================================================================== code startup: PlaySoundThing(song, speakers, volume, mindist, maxdist, 0x1); damaged: PlaySoundThing(broken, speakers, volume, mindist, maxdist, 0x1); # ........................................................................................ end
So far, it just plays both songs at the same time
![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)
Thanks in advance, Dingus Fett.
Dont ask me how it works, it just does.