# void AreaAIMaxPriority(str, int, bool)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
void AreaAIMaxPriority(str, int, bool)
```

## Description

Applies priority 100 or -1 to player AI records whose points lie inside a named area.

## Parameters and return type

**Return type:** `void`

| Position | Type |
| --- | --- |
| 1 | `str` |
| 2 | `int` |
| 3 | `bool` |

## Read and share

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

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