# GetPlrKnowledge

Player
4.6.5.0 CP
int
int player Player whose construction plans you want to determine.
id id If specified, the function returns true, if the player has the construction plan of the specified object.
int index Specify only if id is not 0.
int category Specify only if id is not 0.
With id specified the function returns true if the player has the construction plan of the specified object. In this case index and category are ignored. If id is 0, the function returns the indicated construction plan of the specified category.
if
(GetPlrKnowledge(0,HUT1)) Log("Spieler %s kann Bambushütten bauen",GetPlayerName(0));
Displays a message if the first player has the construction plan for bamboo huts.
var def = GetPlrKnowledge( 0,0,4,C4D_Structure()) ); Log("Der fünfte Gebäude-Bauplan des Spielers ist %i",def);
SetPlrKnowledge
C4D_All
C4D_Goal
C4D_Living
C4D_Object
C4D_Rule
C4D_StaticBack
C4D_Structure
C4D_Vehicle
Günther
2002-02