Category: Player
Since engine version: 1.0 OC
SetPlrKnowledge
Description
Gives a player a construction plan resp. removes the plan if remove is given.
Syntax
int SetPlrKnowledge(int player, id definition, bool remove);
Parameters
- player:
- Player which receives or loses the construction plan. If nil, the function is executed for all players.
- definition:
- Id of the definition for which the plan shall be given.
- remove:
- [opt] If not
false
, the plan will be removed from the players knowledge.
Example
var i, id; while (id = GetDefinition(i++)) SetPlrKnowledge(nil, id);
All players are given plans to all loaded objects.
See also: GetPlrKnowledge, SetPlrMagic