Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

enumArea(<x1, y1, x2, y2 | label>[, filter[, seen]])

wz 3.2+

Returns an array of game objects seen within the given area that passes the optional filter which can be one of a player index, ALL_PLAYERS, ALLIES or ENEMIES. By default, filter is ALL_PLAYERS. Finally an optional parameter can specify whether only visible objects should be returned; by default only visible objects are returned. The label can either be actual positions or a label to an AREA. Calling this function is much faster than iterating over all game objects using other enum functions. (3.2+ only)

  • No labels