# GetCategory

Objects
Category
5.1 OC
int
Determines the category of an object. The category is usually specified in the DefCore but may in some cases haven been changed during the game by SetCategory. The category determines general placement and behaviour of the object. The returned category value can be compared with C4D_x constants using the & operator.
if
(obj->GetCategory() & C4D_Structure) obj->Incinerate();
Incinerates the object if it is a building.
SetCategory
Sven2
2002-04