User Tools

Site Tools


cw4:4rpl_unit_search_analysis

4RPL Unit Search Analysis

This page mainly concerns the GetUnits and GetUnitsInRange 4rpl methods.

Here's some data on how different search parameters interact with what is and isn't found. Note that friend and enemy units appear to be searched for slightly differently. The emitter and cannon columns indicate how many units were found when searching at the coordinates of where these units were located.

Locations of the units:

Code this test was performed with using the 4rpl console; controls other than range, isSquare and is3D were unchanged throughout the test:

  Trace(81 1 39 V3 3 true true false 0 0 0 GetUnitsInRange GetListCount)
  Trace(84 1 39 V3 3 true true false 0 0 0 GetUnitsInRange GetListCount)

Proof the coordinates are correct by tracing all units' position returned by GetUnitPosition

cw4/4rpl_unit_search_analysis.txt · Last modified: 2022/11/10 08:22 by karsten75