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 → w00tcog
w00tcog
2002-03-18, 4:28 PM #1
Can somebody please generate me a cog that goes like this. You activate a switch, then it drops a template from 5 ghosts after a time delay, then the switch resets after another time delay.
Activate Switch > Time Delay > Drop > Time Delay > Reset Switch. I will also need to be able to select all the variables in the cog selector [http://forums.massassi.net/html/biggrin.gif]

------------------
POST COUNT UP!!!!111111


[This message has been edited by Dash_rendar (edited March 18, 2002).]
2002-03-18, 4:56 PM #2
Umm, ok.

Code:
# Silly object generator.  And by silly, I mean silly...
#
# 03/2002 GBK
Symbols
Message Startup
Message Activated
Message Timer
Thing Ghost0
Thing Ghost1
Thing Ghost2
Thing Ghost3
Thing Ghost4
Template Type
Surface Switch
Flex Delay0=1
Flex Delay1=1
Int I=0			Local
End
Code
Startup:
Setwallcel(Switch, 0);
Stop;
Activated:
If(Getwallcel(Swith) != 0) Stop;
Setwallcel(Switch, 1);
Settimerex(Delay0, 1, -1, -1);
Stop;
Timer:
If(GetsenderID() == 1) { For(I=0;I<5;I=I+1) Creatething(Type, Ghost0); 
Settimerex(Delay1, 2, -1, -1); }
Else { Setwallcel(Switch, 0); }
Stop;
End


Untested, but it should work... [http://forums.massassi.net/html/biggrin.gif]

Credit me.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-19, 2:25 PM #3
GBK, if you supply me with the cover mat, i will make you a plaque in my level for 1337 level cogz0r. No really, i will [http://forums.massassi.net/html/biggrin.gif] just send it in the email. That is, if you want it. Im going to make a secret "thanks" room for all the people who made the level possible [http://forums.massassi.net/html/smile.gif].

------------------
POST COUNT UP!!!!111111
2002-03-19, 4:57 PM #4
Umm, ok. Check your email... [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!