SetFoW

Category: Player / View
Since engine version: 4.9.1.0 GWE

Description

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

Syntax

bool SetFoW (bool fEnabled, int iPlayer);

Parameters

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

Example

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