Function GroupEnumUnitsInRange

  • Adds units within radius of map coordinates X, Y who match filter to whichGroup. A null as filter means that every nearby unit is added to group.

    If the group has had units previously, it will be first cleared (old units will not be preserved). A group that has been destroyed will not be recreated.

    Parameters

    • whichGroup: HandleHolder<"group">

      Group to add units to.

    • x: number

      X map coordinate.

    • y: number

      Y map coordinate.

    • radius: number

      Radius in map units.

    • filter: HandleHolder<"boolexpr">

      Filter function.

    Returns void

    Note

    See: GroupEnumUnitsInRect, GroupEnumUnitsInRangeOfLoc.

Generated using TypeDoc