# point Unit::BestMDPos(int, int, int, int, bool)

[Family: Unit](/imperivm/en/CKS/familias/unit/)

## Exact signature

```text
point Unit::BestMDPos(int, int, int, int, bool)
```

## Description

Ranks filtered hostile squad leaders by a circle relation count with optional friendly penalties and a distance bonus.

## Parameters and return type

**Return type:** `point`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `int` |
| 2 | `int` |
| 3 | `int` |
| 4 | `int` |
| 5 | `bool` |

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-6744e0a93101a2.md)
- [JSON](/imperivm/CKS/api/entries/api-6744e0a93101a2?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
