toggleFoW

From RPTools Wiki
Revision as of 20:48, 20 August 2018 by Phergus (talk | contribs) (Fixed description. Extended text.)
Jump to navigation Jump to search

toggleFoW() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.4.1.3
toggles the state of Fog of War (FoW) on the current map.

Usage

toggleFoW(value, id)

This function toggles the state of Fog of War (FoW) on the current map either off or on. This functions identically to the menu option Map -> Fog-of-War or the hotkey Meta-W.

Parameters

  • none - Has no parameters.


Example:

[h:toggleFoW()]



See Also