---
name: "BIS_fnc_diagPreviewCycle"
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_diagPreviewCycle
revid: 347983
updated: 2023-11-08T09:59:34Z
---

# BIS_fnc_diagPreviewCycle

*Function · Diagnostic · Arma 3 v1.00*

## Description

Previews selected class from the list. When **cheat1** (?) is activated, classnames will be shown instead of display names.

## Syntax

```sqf
[container, position, vector, display] call BIS_fnc_diagPreviewCycle
```

**Parameters:**

- `container`: [String](../topics/String.md) - (Optional, default "CfgVehicles") class container. Can be:
  - "CfgVehicles"
  - "CfgWeapons"
- `position`: [Array]] format [Position](../topics/Position.md) - (Optional, default `[position player, 10, 0] call BIS_fnc_relPos`) position of the previewed object
- vector [Array](../topics/Array.md) of [Number](../topics/Number.md)s - (Optional, default [0,0]]) vector of previewed object in format:
  - 0: Pitch
  - 1: Bank
- `display`: [Display](../topics/Display.md) - (Optional, default [BIS_fnc_displayMission](../functions/BIS_fnc_displayMission.md)) parent display

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
["CfgVehicles"] call BIS_fnc_diagPreviewCycle;
```

<sub>Source: [BI Community Wiki — BIS fnc diagPreviewCycle](https://community.bistudio.com/wiki/BIS_fnc_diagPreviewCycle) (revision 347983).</sub>
