View Full Version : .wav cog
Shockaz
10-21-2003, 07:27 PM
Cog Idea:
Playing a .wav repeatedly in certain sectors until a thing is activated. When activated, then that .wav would stop playing, and aother .wav would play in those certain sectors.
Can this be done?
------------------
Shockaz
10-21-2003, 07:27 PM
*another*
------------------
lucky_jackpot
10-22-2003, 01:06 AM
*/me coughs louder...*
http://forums.massassi.net/html/Forum4/HTML/003874.html
The cog I've supplied there works very much the same way as what you want.
At the moment, the only difference is the sound is muted, but you can easily add another sound wave and make it so that instead of muting the sound, it switches to the other sound instead http://forums.massassi.net/html/biggrin.gif
As always, if you have any trouble, post back here and we'll sort things out for you - alas I'm only just starting work for the day (not to mention that my cog scripts are all on my laptop at home), so I can't write the cog out fully for you right now... http://forums.massassi.net/html/redface.gif
-Jackpot
------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)
"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
Shockaz
10-22-2003, 06:52 AM
Ah, thanks bro. I'll have to modify it slightly so it activates when a thing is activated. Other than that, you've been a lot of help. http://forums.massassi.net/html/smile.gif
------------------
Pumpkins are the only living organisms with triangle eyes.
lucky_jackpot
10-23-2003, 12:57 AM
Hey no probs - that's what this community is for, to help out http://forums.massassi.net/html/biggrin.gif
If memory serves me correct about that cog script, all you'll have to do for a "thing" activation, is simply add a thing (say a console, for example) and give it "linkid=1". Then all activated messages will be received with the "GetSenderId() == 1" parameter check in the "activated" message... http://forums.massassi.net/html/wink.gif http://forums.massassi.net/html/redface.gif Sounds simple (and it truly is http://forums.massassi.net/html/wink.gif )
Glad to have helped http://forums.massassi.net/html/biggrin.gif
-Jackpot
------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)
"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.