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 → problem creating things through cogs
problem creating things through cogs
2002-03-16, 2:16 PM #1
i made an actor cog for a MOD. it's supposed to create something upon death, i substituted the template in create weapon, but it didn't work. i tried the template in a diffrent cog and it works fine. any ideas what the problem is?
2002-03-16, 4:33 PM #2
Then you're either not creating the powerup correctly, or you have a syntax error. Post the cog, and we'll take a look. [http://forums.massassi.net/html/wink.gif]

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-03-16, 6:31 PM #3
Actually, it just doesn't associate the actor COG with the template for some reason...any reason it wouldn't do that?
2002-03-17, 1:35 AM #4
In the template, add 'cog=Yourcog.cog'.

Then, in the cog, add:

Code:
Created:
Actor = Gesenderref();
Capturething(Actor);
Stop;


Then, add your creatething code under 'Killed'.

------------------
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-17, 11:07 AM #5
You don't need to make the same cog the class and capture cog of a thing.

All you need to do is put cog=yourCog.cog in the template. There's no need to capture it also.

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!