# Obj Unit::BestProtPos(int, int, int, int)

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

## Exact signature

```text
Obj Unit::BestProtPos(int, int, int, int)
```

## Description

Scores hostile squad leader neighborhoods by relation-count balance and a product, preferring a normal leader result over a same-player sacrifice override.

## Parameters and return type

**Return type:** `Obj`

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` |

## Read and share

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

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