---
name: "BIS_fnc_diagAARrecord"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_diagAARrecord
revid: 329377
updated: 2022-07-27T13:08:54Z
---

# BIS_fnc_diagAARrecord

*Function · Diagnostic · Arma 3 v1.00*

## Description

Starts recording units position and events for an **AAR** (After Action Review).

The following keys must be added to [Description.ext](../topics/Description.ext.md) for AAR to work properly:

```cpp
diagAAR = 1;        // to enable diag AAR
diagAARauthor = 1;    // if description.ext/dev == profileName, allows the creator to debug himself
diagAARunits = 2;    // which units to record:
                        // 1 = units player
                        // 2 = allunits + alldead
                        // any other value = player
diagAARdelay = 3;    // delay between recording steps
```

The data can be accessed with `profileNamespace getVariable "BIS_fnc_diagAAR_data"`.

## Syntax

```sqf
call BIS_fnc_diagAARrecord
```

**Returns:** [Number](../topics/Number.md) - the FSM handle (see [execFSM](../commands/execFSM.md))

## Examples

### Example 1

```sqf
call BIS_fnc_diagAARrecord;
```

## See also

[BIS_fnc_diagAAR](../functions/BIS_fnc_diagAAR.md)

<sub>Source: [BI Community Wiki — BIS fnc diagAARrecord](https://community.bistudio.com/wiki/BIS_fnc_diagAARrecord) (revision 329377).</sub>
