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 → Synchronizing cogs?
Synchronizing cogs?
2002-04-20, 3:05 AM #1
Is it possible to synchronize two cogs?
I'm using a cog with a rand pulse, k1_lightning.cog, and I want 00_sectordamage.cog to do sector damage only when there is lightning.

How would I do that?
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2002-04-20, 3:58 AM #2
hmmm...maybe send start/stop triggers?

------------------
"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-04-20, 9:03 AM #3
Just modify 'k1_lightning.cog' to include the following code:

Code:
Pulse:

For(I=0;I<=Getthingcount();I=I+1) If(Getthingtype(I) == 10 && Getthingsector(I) == DAMAGE_SECTOR) Damagething(I, AMOUNT, 0x2, I);


Kill in the caps with the appropriet values.


Bingo, problem solved.

------------------
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-04-20, 10:12 AM #4
Thanks!

I'll try it right away!

edit: works like a charm.

[This message has been edited by ZOOIkes (edited April 20, 2002).]
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com

↑ Up to the top!