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 »

warzone 3.2 or above

gets a list of objects within a specific range of a map location

 

var returnValue = enumRange(x,y,range,player)

 

player can be id or things like ENEMIES, ALLIES, etc.

range is in tiles

 

Returns an array of game objects seen within range of given position 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. Calling this function is much faster than iterating over all game objects using other enum functions. (3.2+ only)

  • No labels