---
name: "BIS_fnc_diagBulletCam"
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_diagBulletCam
revid: 327735
updated: 2022-07-13T10:30:15Z
---

# BIS_fnc_diagBulletCam

*Function · Diagnostic · Arma 3 v1.00*

## Description

Add a "bullet camera" to shots fired by the specified unit.

## Syntax

```sqf
unit call BIS_fnc_diagBulletCam
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - the shooting unit. Can be a vehicle.

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when done

## Examples

### Example 1

```sqf
player call BIS_fnc_diagBulletCam;
```

### Example 2

```sqf
// bullet camera will be removed after 10s
_unit = player;
_unit call BIS_fnc_diagBulletCam;
_ehIndex = _unit getVariable "BIS_fnc_diagBulletCam_fired";
sleep 10;
_unit removeEventHandler ["fired", _ehIndex];
```

<sub>Source: [BI Community Wiki — BIS fnc diagBulletCam](https://community.bistudio.com/wiki/BIS_fnc_diagBulletCam) (revision 327735).</sub>
