object - player


void EnableCommand(int nCommand, int bEnable)

Scope: public

Parameters
nCommand - command number (see enums in player).
bEnable - true if enabling command nCommand, false if this command is disabled.

Return values
none

Description
[MP]
This function is used to enable or disable commands. If some command is disabled then this command isn't provided to user (is not displayed in pannel) so can not be executed. This function works only for human player not for AI players.
By default all commands are enabled, exept [MP] commands: commandSoldBuildingSold and commandBuildingSpyPlayer*.

See also