SetPlrKnowledge
Category: Player
Since engine version: 4.6.5.0 CP
Description
Gives a player a construction plan resp. removes the plan if fRemove is given.
Syntax
int SetPlrKnowledge
(int iPlr, id idDef, bool fRemove);
Parameters
- iPlr:
Player which receives the construction plan
- idDef:
Id of the definition for which the plan shall be given
- fRemove:
[opt]
If not 0, the plan will be removed from the players knowledge
Example
var i, id; while (id = GetDefinition(i++)) SetPlrKnowledge(0, id);
The first player is given plans to all loaded objects.
Sven2, Juni 2003