User Tools

Site Tools


crpl:docs:getenemyunitsinrange

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
crpl:docs:getenemyunitsinrange [2013/05/12 12:06] – created jmapscrpl:docs:getenemyunitsinrange [2015/01/11 15:45] – Correction to code sample stewbasic
Line 8: Line 8:
  
 === Description === === Description ===
-Returns a list of unit UID's.  Returns all enemy units in range.  A list is returned.  A list consists of some number of unit uids, with the number of items in the list being the item on the top of the stack.+Returns a list of unit UID's. Returns all enemy units in range (emitters, spore towers, cores).  A list is returned.  A list consists of some number of unit uids, with the number of items in the list being the item on the top of the stack.
 === Examples === === Examples ===
 <code> <code>
Line 15: Line 15:
 do (GetEnemyUnitsInRange(0 0 9999) 0) do (GetEnemyUnitsInRange(0 0 9999) 0)
  ->unitUID  ->unitUID
- if (GetUnitType(<-unitUID) eq "EMITTER" )+ if (GetUnitType(<-unitUID) "EMITTER" eq)
  <-count add(1) ->count  <-count add(1) ->count
  endif  endif
crpl/docs/getenemyunitsinrange.txt · Last modified: 2021/02/05 11:44 by Karsten75