C4D_Knowledge

Category: Objects / Category
Since engine version: 4.6.5.0 CP

Description

Object category: construction plan.

Syntax

int  C4D_Knowledge ();

Remark

This value is also defined as a constant. Thus the parameter brackets can be omitted.

Example

if( GetCategory( 0, GetHomebaseMaterial( )) & C4D_Knowledge()) Message("Spieler 1 kann etwas kaufen, was er auch erforschen oder bauen könnte.");
Using bitwise AND you can check whether two objects correspond in at least one category.
See also: GetCategory, GetDefinition, GetHomebaseMaterial, GetPlrKnowledge, SetCategory
Günther, Februar 2002