eraseVBL

From RPTools Wiki
Revision as of 07:53, 6 March 2019 by Azhrei (talk | contribs)
Jump to navigation Jump to search

eraseVBL() Function

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

Introduced in version 1.3b89
Erases Vision Blocking Layer (VBL) shapes.

Usage

eraseVBL(shapesList)

This function works EXACTLY the same as drawVBL() with the ONLY difference that drawVBL() draws the shapes on the vision blocking layer and eraseVBL erases them. For descriptions on parameters and more examples goto the drawVBL() page.

Example

This example erases a (solid) block of VBL of 200x200 pixels, centered on the origin of the map
[h:rectangle	= "{'shape':'rectangle','x':0,'y':0,'w':200,'h':200, 'fill':1}"]
[h:objectArrary	= json.append('',rectangle)]
[h:eraseVBL(objectArrary)]

See Also