Re: Cog


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by Magi on January 05, 1998 at 23:05:08:

In Reply to: Cog posted by Greedo on January 05, 1998 at 18:02:14:

> What is a cog? Is it a script that goes with the level like QuakeC or a hexen (1) script? How do I add one?

The cog is the power that surounds the level and is found in every moving thing.
It controls the levels actions and obeys your commands. :)

It is the programming language that makes things move and brings a level alive, from moving elevators to playing sounds and modifiying weapons.
I am not familiar with QuakeC, but it is probably pretty close.

The cog language is more or less object oriented. Each script (code segment) tends to be less than 30 lines and is associted with a thing(s).
for example, to move an elevator, a script is added (00_std_elev.cog is one script that will move one).

To add a cog in JED, simply go to the tools menu and select placed cogs. A screen will pop up with buttons at the bottom to allow you to add cogs. The tutorial for JED shows how to set up an elevator cog. Jed will also let you add cogs that you have in your project directory. You may write them with any text editor. For specs on the language, see the specs button on the left of this screen.



Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]