setMapVision: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 29: Line 29:


Will set map vision to night.
Will set map vision to night.
}}


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


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

Latest revision as of 02:32, 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