setMapVision: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=setMapVision |version=1.14.0 |trusted=true |description= Changes the Map Vision setting of the current map. |usage= <syntaxhighlight lang="mtmacro" line> setMapVision(new setting) </syntaxhighlight> '''Parameters''' {{param|vision setting|{{code|off}}, {{code|day}} or {{code|night}}}} |examples= <syntaxhighlight lang="mtmacro" line> [setMapVision("day")] </syntaxhighlight> Will set map vision to day. <syntaxhighlight lang="mtmacro" line> [setMapVi...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 30: Line 30:
Will set map vision to night.
Will set map vision to night.


|also=
{{func|getMapVision}}
}}


}}
[[Category:Map Function]]
[[Category:Map Function]]

Latest revision as of 23:59, 13 December 2023

setMapVision() Function

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

Introduced in version 1.14.0
Changes the Map Vision setting of the current map.

Usage

setMapVision(new setting)

Parameters

  • vision setting - off, day or night

Examples

[setMapVision("day")]

Will set map vision to day.

[setMapVision("off")]

Will set map vision to off.

[setMapVision("night")]
Will set map vision to night.

See Also