GetPathNodesInRect

From the Oblivion ConstructionSet Wiki
Revision as of 18:55, 12 June 2012 by imported>QQuix (New page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(nodes:Array) GetPathNodesInRect centerX:float centerY:float extentX:float extentY:float  angle:float  includeDisabledNodes:bool

Returns an Array of all path nodes located within the rectangular area described by the center point (x, y) and the extents along the x and y axes (i.e. half-width and half-height). An angle of rotation in radians can optionally be specified; if omitted the rectangle is assumed to be aligned with the world axes. By default, disabled nodes are ignored; pass 1 for the optional sixth argument to include them.