Category: Objects
/ Category
Since engine version: 1.0 OC
GetCategory
Description
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.
Syntax
int GetCategory();
Example
if (obj->GetCategory() & C4D_Structure) obj->Incinerate();
Incinerates the object if it is a building.
See also: SetCategory