Skip to content

FogOfWar

Raises the fog of war over a campaign mission.

Specification
Applies to
scenarios
File
map file
Section
[SpecialFlags]
Value
boolean
When omitted
noThe campaign branch clears the flag before the map is read, so a mission that omits the key runs without fog whether or not the mission before it set one.
map file
[SpecialFlags]
FogOfWar=yes

The value is read into the scenario’s own copy of the special options, which is the copy every part of the game consults when it asks whether fog is running, and a scenario that finishes loading with the flag set has the fog raised over every cell not already under it. Shroud, fog and the radar map owns what the fog then does and how FogRate brings it back over ground nothing is watching.

The entry is read from the map only in a single-player mission or with the map debugger active. A campaign clears the scenario’s flag just before the map file is opened, so the map’s own assignment is the only thing that can switch fog on, and nothing later in the loading order overwrites it. Every other game type skips the read, fills the scenario’s copy from the game option before the map file is opened, and replaces the scenario’s whole set of flags with the one the lobby settled on once the map has been read, so the entry reaches nothing there.

See alsoFogRate, map-visibility