SetFoW

Category: Player / View
Since engine version: 1.0 OC

Description

Switches the fog of war for one player on or off.

Syntax

void SetFoW(bool enabled, int player);

Parameters

enabled:
If true, the fog of war is activated, if false, deactivated.
player:
Player number.

Example

var i = 0;
for (var plrnum = GetPlayerCount (); plrnum; i++)
  if (GetPlayerName (i)) {
    plrnum--;
    SetFoW (false, i);
  }
Deactivates fog of war for all players.
See also: SetLightRange, SetPlrView
Günther, 2002-11