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 → Need unusual cog.......
Need unusual cog.......
2002-06-01, 12:30 PM #1
I wil start with my situation (as it amy help understand)

Im making one of those levels where it is a train with the scrolling walls and teh train itself holding still. But to make it look more realistic, i want to have those little "Booths" fly by the train like they were on the side of the tunnel.

Heres what i need. I need to cog that will generate a 3do (the booth) about every 10 seconds. The booth will automatically be moving because i will modifly the template. So basically the cog will generate the booth's at the end of the tunnel and they will fly by the train with the same speed as the walls. But, if the levels goes for too long, i will break the thing limit, so these booth's need to be removed after 1 minute of being generated. I fyou need more information, say so.

------------------
The truth is out there, but so are lies.
2002-06-01, 1:26 PM #2
I do believe there is a cog that creates and destroys a 3do (after it goes across the area it is supposed to...) in the first level in JK...the part where the crates are moving...
2002-06-01, 1:58 PM #3
Any idea of the name?

------------------
The truth is out there, but so are lies.
2002-06-01, 3:11 PM #4
Nope :/
Load the map up in JED and go to that section and see what Cogs are being used to narrow the list down ...
2002-06-02, 4:51 AM #5
why don't you just add a timer to the template, so it will be destroyed automatically?

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-06-02, 8:05 AM #6
No need. The cog I wrote will do it automatically...


Here it is if anyone else wants it.

Code:
#06/2002 GBK
Symbols
Message Startup
Message Pulse
Message Timer
Thing Ghost
Template Type
Flex Pulse_rate=10
Flex Halflife=60		#How long the object exists
End
Code
Startup: Sleep(0.5);
Setpulse(Pulse_rate); Stop;
Pulse:
Settimerex(Halflife, Creatething(Type, Ghost), -1, -1);
Stop;
Timer: Destroything(Getsenderid()); Stop;
End


Of course, if you use it, credit me... [http://forums.massassi.net/html/smile.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-06-02, 8:07 PM #7
Mad, half-life in cogs! Great variable name.

(Yes I know what a half-life is... not the game)
Team Battle.
2002-06-03, 4:09 AM #8
[http://forums.massassi.net/html/biggrin.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-06-04, 4:30 PM #9
Have you tested this? I must be doing something wrong....

------------------
The truth is out there, but so are lies.

↑ Up to the top!