PDA

View Full Version : Need unusual cog.......



Dash_rendar
06-01-2002, 03:30 PM
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.

Cool Matty
06-01-2002, 04:26 PM
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...

Dash_rendar
06-01-2002, 04:58 PM
Any idea of the name?

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

Cool Matty
06-01-2002, 06:11 PM
Nope :/
Load the map up in JED and go to that section and see what Cogs are being used to narrow the list down ...

zagibu
06-02-2002, 07:51 AM
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)

gbk
06-02-2002, 11:05 AM
No need. The cog I wrote will do it automatically...


Here it is if anyone else wants it.



#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 (http://www.tbns.net/GBK/ol/index.htm).

Hellcat
06-02-2002, 11:07 PM
Mad, half-life in cogs! Great variable name.

(Yes I know what a half-life is... not the game)

gbk
06-03-2002, 07:09 AM
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 (http://www.tbns.net/GBK/ol/index.htm).

Dash_rendar
06-04-2002, 07:30 PM
Have you tested this? I must be doing something wrong....

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