Category: Player
Since engine version: 5.1 OC
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.true
, if the player has the construction plan of the specified object.type
is not specified, this is the index of the construction plan from the list of construction plans.type
is not specified, this narrows down the category of the construction plans.if(GetPlrKnowledge(0,WindGenerator)) Log("Player %s can construct a %s",GetPlayerName(0),WindGenerator->GetName());
var def = GetPlrKnowledge( 0,nil,4,C4D_Structure); Log("The fifth construction plan of the first player is for ID "%i"",def);