# bool Unit::EnemiesInSight()

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

## Exact signature

```text
bool Unit::EnemiesInSight()
```

## Description

Builds a diplomacy-filtered spatial query around the Unit and returns whether a matching candidate was found.

## Parameters and return type

**Return type:** `bool`

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

This signature takes no additional arguments.

## Read and share

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

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