# void SetAIVar(int, int, int, bool)

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

## Exact signature

```text
void SetAIVar(int, int, int, bool)
```

## Description

SetAIVar sets or clears bit (bit argument modulo 32) in an indexed dword reached through the selected player record.

## Parameters and return type

**Return type:** `void`

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

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`void SetAIVar(int, int, int)`](/imperivm/en/CKS/reference/api-79e9ffe824947b/)

## Read and share

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

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