# bool Obj::IsEnemy(Obj)

[Family: Obj](/imperivm/en/CKS/familias/obj/)

## Exact signature

```text
bool Obj::IsEnemy(Obj)
```

## Description

Checks whether the objects belong to enemy players. Returns false for allies or invalid objects.

## Parameters and return type

**Return type:** `bool`

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

| Position | Type |
| --- | --- |
| 1 | `Obj` |

## Read and share

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

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