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 → Another product of my ignorance - Class Cogs
Another product of my ignorance - Class Cogs
2003-07-21, 6:35 AM #1
I have a class cog that causes a Corona object to look at the player. But it only works for the object with the highest number - apparently only running one instance of the cog. Is there a flag or something that should be set in my template. It's based on _decor, and has nothing new but the 3do & size stuff (and of course cog=xxx.cog).

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!

pegasus_1984: Stop bushing that dang suck button.
guitarofgold: NOOOOOOOOO!!!!
-------[end post]-------
Catloaf, meet mouseloaf.
My music
2003-07-21, 2:09 PM #2
That's how class cogs work, there's only one instance of the cog to handle all of the things that use it. So make sure to use the sender in each message to get a reference to your things.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-23, 4:15 PM #3
What about sequencer mines (when you use secondary fire)? Or 00_smoketrail.cog used on raildetonators?

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!

pegasus_1984: Stop bushing that dang suck button.
guitarofgold: NOOOOOOOOO!!!!
-------[end post]-------
Catloaf, meet mouseloaf.
My music
2003-07-23, 7:44 PM #4
Same deal.


------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-25, 3:36 PM #5
Found a fix: Under created, there is of course something like ThingRef=GetSenderRef(); So I add the same thing under the pulse message (it's a thingpulse), and it works on all instances of the template. (Was that what you meant earlier, btw?)

Anyway, I decided to use sprites instead since I need to have a different class cog with this template also. Not to mention it's easier. I don't know what I was thinking.

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!

pegasus_1984: Stop bushing that dang suck button.
guitarofgold: NOOOOOOOOO!!!!
-------[end post]-------

[This message has been edited by DogSRoOL (edited July 25, 2003).]
Catloaf, meet mouseloaf.
My music
2003-07-26, 5:18 PM #6
Yeah, that's what I meant before. [http://forums.massassi.net/html/wink.gif]

Take notes, Edward.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!