getVBL: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|version=1.3b90 | |version=1.3b90 | ||
|description= | |description= | ||
Gets the Vision Blocking Layer (VBL) shapes for the area specified in the {{code|shape}} parameter. | |||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
getVBL(shape,format) | |||
</source> | </source> | ||
This function retrieves the found | This function retrieves the VBL found in the given shape. | ||
'''Parameters''' | '''Parameters''' |
Revision as of 13:36, 3 June 2019
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
getVBL() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.3b90
Gets the Vision Blocking Layer (VBL) shapes for the area specified in the
shape
parameter.Usage
getVBL(shape,format)
This function retrieves the VBL found in the given shape.
Parameters
shape
- A JSON object as described in drawVBL().format
- Boolean. Returns a JSON object iffalse
(0
), or an JSON array of coordinates iftrue
(1
). In either case, the returned shape covers the VBL found in the area.
Example:
[h:rectangle = "{'shape':'rectangle','x':50,'y':50,'w':100,'h':200,'r':45,'fill':1,'thickness':1,'scale':0}"]
[r:vblData = getVBL(rectangle , 0)]