This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:getunits [2023/12/01 11:46] – [Description] Kalli | 4rpl:commands:getunits [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
? unitType: | ? unitType: | ||
- | : a string indicating the [[unit types|unit type]]((Unit Type can also be the UID of a CMOD)) to return. If empty string ("" | + | : a string indicating the [[unit types|unit type]]((Unit Type can also be the GUID of a CMOD)) to return. If empty string ("" |
? startPos: | ? startPos: | ||
: a V3 (vector3) indicating the point to search outwards from. | : a V3 (vector3) indicating the point to search outwards from. | ||
Line 16: | Line 16: | ||
: a floating point number that is the maximum distance from startPos. | : a floating point number that is the maximum distance from startPos. | ||
? isSquare: | ? isSquare: | ||
- | : a boolean. It means to check in a square rather than a circle around startPos. For 3D checks, the vertical displacement is also checked (so the range is effectivly a cube rather than a sphere). | + | : a boolean. It means to check in a square rather than a circle around startPos. For 3D checks, the vertical displacement is also checked (so the range is effectivly a cube rather than a sphere). |
? is3D: | ? is3D: | ||
: a boolean. It determines if a true 3d distance is used for range, or if only the X and Z components (2D) distance calculation is used. | : a boolean. It determines if a true 3d distance is used for range, or if only the X and Z components (2D) distance calculation is used. |