# GetPlrKnowledge

Player
5.1 OC
int
int player Player whose construction plans you want to determine.
id type If specified, the function returns `true`, if the player has the construction plan of the specified object.
int index If `type` is not specified, this is the index of the construction plan from the list of construction plans.
int category If `type` is not specified, this narrows down the category of the construction plans.
With `type` specified the function returns `true` if the player has the construction plan of the specified object. In this case `index` and `category` are ignored. Otherwise, the function returns the indicated construction plan of the specified category.
if
(GetPlrKnowledge(0,WindGenerator)) Log("Player %s can construct a %s",GetPlayerName(0),WindGenerator->GetName());
Displays a message if the first player has the construction plan for wind generators.
var def = GetPlrKnowledge( 0,nil,4,C4D_Structure); Log("The fifth construction plan of the first player is for ID "%i"",def);
SetPlrKnowledge
C4D_All
C4D_Goal
C4D_Living
C4D_Object
C4D_Rule
C4D_StaticBack
C4D_Structure
C4D_Vehicle
Günther
2002-02