Posted by Merlin on November 24, 1998 at 17:27:59:
I made a cog to play elton john music I copied into wav format using Gold Wave program. The tune was parts of a song and they were broken into two wav files.
The wavs were longer than the ussual wavs you find in Mysteries of the Sith but they were using the same format as other wavs in Mysteries of the Sith.
My Cog went like this:
symbols
message startup
message pulse
thing radio
sound daneil1=daneil1.wav local
sound daneil2=daneil2.wav local
end
code
startup:
SetPulse(1);
return;
Pulse:
SetPulse(0);
PlaySoundThing(radio,daniel1,10,0,0);
Sleep(GetSoundLen(daniel1));
PlaySoundThing(radio,daniel2,10,0,0);
Sleep(GetSoundLen(daniel2));
Sleep(1);
SetPulse(1);
Return;
end
My problem was when I ran the level the music wouldn't play, instead the electrical explosion 03 sound used in 00simplesparks.cog played non stop and the simple sparks cog(the one mentioned a moment ago) that I had elsewhere in my level stopped emiting sparks.
Why did this happen?! Can some one post a cog in their followup of this that can make this work right and could you add with that so that when you damage the radio and explosion goes off and the radio's position and the music stops.
Note: Yes, I know about copyright stuff and that I can't put out a level with this music on it, but I was just doing it for fun at home.
Please if you can help me put up a post! It would be greatly apprecitated.