Category: Player
/ View
Since engine version: 1.0 OC
SetFoW
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, iffalse
, 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