getVBL

From RPTools Wiki
Revision as of 13:15, 21 November 2013 by Wolph42 (talk | contribs) (New page: {{MacroFunction |name=getVBL |proposed=false |trusted=true |version=1.3b90 |description= This function saves Vision Blocking Layer (VBL) shapes. |usage= <source lang="mtmacro" line> drawV...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getVBL() Function

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

Introduced in version 1.3b90
This function saves Vision Blocking Layer (VBL) shapes.

Usage

drawVBL(shape,format)

This function retrieves the found shape in the given shape.


Parameters

  • shape - A json object as described in drawVBL().
  • format - Boolean. 0 returns a json object similar to the one you feed it. 1 returns an array of coordinates which 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(h:rectangle , 0)]



See Also