Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → I need a cogger better than the best cogger in the world
I need a cogger better than the best cogger in the world
2001-11-05, 2:20 PM #1
I need a cog that will activate some sector thrust to a specifyable vector in a specifyable sectore for a specified amount f time. With sounds also [http://forums.massassi.net/html/smile.gif]
2001-11-05, 3:21 PM #2
oh and dont forget teh specified ammount of time before it shuts off [http://forums.massassi.net/html/smile.gif]
2001-11-05, 6:44 PM #3
Ahh, sectorthrust. A true classic.

 


# 11/2001 GBK
Symbols
Message Activated
Message Timer
Surface Switch
Sector Thrust_sector
Vector Thrust_dir
Flex Thrust_speed
Flex Thrust_time
Sound Thrust_sound
Thing Sound_thing
Flex Sound_dist
Int Channel Local
End
Code
Activated:
If(Getsenderref() == Switch) {
Setwallcel(Switch, 1);
Sectorthrust(Thrust_sector, Thrust_dir, Thrust_speed);
Channel = Playsoundthing(Thrust_sound, Sound_thing, 1.0, -1, Sound_dist, 0x1);
Settimer(Thrust_time);}
Stop;
Timer:
Setwallcel(Switch, 0);
Setsectorthrust(Thrust_sector, Thrust_dir, 0);
Stopsound(Channel, 0.1);
Stop;
End

 


It works, I tested it. [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-05, 7:09 PM #4
You need a normal cogger for this to be done [http://forums.massassi.net/html/smile.gif]

------------------
http://millennium.massassi.net/ - Millennium
2001-11-06, 9:42 AM #5
...or a normal cogger with lots of time on his hands... [http://www.plauder-smilies.com/rough/shotgun.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-06, 11:36 AM #6
THanks GBK, your gonna get extra credit in my level [http://forums.massassi.net/html/smile.gif] i might make up somethign that says "Thanks to GBK for the cog" when the switch is activated hehe

↑ Up to the top!