setMapVision

From RPTools Wiki
Revision as of 02:31, 13 December 2023 by Taustin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.