| 01-10-2010, 09:30 PM | #1 |
Hi, Functions like GroupEnumUnitsInRadiusCounted or GroupEnumUnitsInRectCounted seem not to work correctly: whatever integer I pass as countLimit they always enumerate all units in rect/radius. It seems it's a bug. Have any info about it? |
| 01-11-2010, 02:02 AM | #2 |
Elaborate more please. Post a code. |
| 01-11-2010, 12:43 PM | #3 |
JASS:call GroupEnumUnitsInRadiusCounted(myGroup, 0, 0, 512, null, 3) |
| 01-11-2010, 04:37 PM | #4 |
Counted function DONT WORK |
| 01-11-2010, 04:47 PM | #5 |
It's basically the same as GroupEnumUnitsInRadius, with an extra useless argument countLimit, the value of it doesn't matter. You have to use a global variable integer, increase it inside the boolexpr when the unit perform your check, and when the integer reach your value, always return false. Wait ... since when we have a native GroupEnumUnitsInRadius function, you mean GroupEnumUnitsInRange ? Or is it a custom one ? |
| 01-11-2010, 09:19 PM | #6 |
Nah, I mean't radius, it's mistake. Right. Ty for answers :) |
