User Tools

Site Tools


crpl:docs:getenemyunitsinrange

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:getenemyunitsinrange [2014/10/01 15:02] – external edit 127.0.0.1crpl:docs:getenemyunitsinrange [2020/05/30 20:20] – Fixed notation to be consistent with GetUnitsInRange and other GetUnit functions Sanian
Line 4: Line 4:
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-|Coordinates and range|Number of enemy units in range and their UID's|''i1 i2 f1 -- [l1 l2...]i3 ''|+|Coordinates and range|Number of enemy units in range and their UID's|''i1 i2 f1 -- l1 l2...ln n''|
  
  
 === Description === === Description ===
-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.+Pushes the UID'of all enemy units in range (emitters, spore towers, cores) onto the stack followed by the integer n, where n is the number of units
 === 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