SetPlrKnowledge
Category: Player
Since engine version: 5.1 OC
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.
Sven2, 2003-06