COG Flag - Thing Type

Thing Types Table

Dec Purpose
-1Unknown. Cannot be undone.
0Free.
1Camera.
2Actor.
3Weapon.
4Debris.
5Item.
6Explosion.
7Cog.
8Ghost.
9Corpse.
10Player.
11Particle.

Thing Types Description

Each thing type has a number assigned to it. Knowing this number is useful because if you needed to find the type of a thing ingame, the only way to do it is to get the thing's type number. You would use code similar to:

  if(GetThingType(potential) == 10) // then thing is a player 

With SetThingType(), it is possible to change a thing's type ingame. But this is not recommended.

The first two thing types listed here, free and camera, are not known to function and were never used. But they are in an exe listing of thing types. And this listing is in order of their thing type number.

These thing types are not related to message types. Message type values are a property of messages and are not used with things directly.

Verbs Used: GetThingType SetThingType

  • Create:
This page was last modified 05:58, 31 March 2006.   This page has been accessed 1,129 times.