toggleFoW: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Changed FoW category.)
mNo edit summary
Line 4: Line 4:
|trusted=true
|trusted=true
|version=1.4.1.3
|version=1.4.1.3
|description=toggles the state of Fog of War (FoW) on the current map.
|description=
Toggles the state of Fog of War (FoW) on the current map.


|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
toggleFoW(value, id)
toggleFoW()
</source>
</source>


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.
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'''
'''Parameters'''
{{param|none|Has no parameters.}}
{{param|none|Has no parameters.}}


''Example:''<source lang="mtmacro">
''Example:''<source lang="mtmacro">
[h:toggleFoW()]
[h: toggleFoW()]
</source><br />
</source>


|also=
|also=

Revision as of 04:53, 7 March 2019

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()

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