---
name: "BIS_fnc_traceBullets"
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_traceBullets
revid: 329387
updated: 2022-07-27T13:25:25Z
---

# BIS_fnc_traceBullets

*Function · Diagnostic · Arma 3 v1.00*

## Description

Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.

If you want to change the unit, first set `BIS_tracedShooter = nil` *then* execute the script again.

## Syntax

```sqf
[unit, number] call BIS_fnc_traceBullets
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `number`: [Number](../topics/Number.md) - (Optional, default 20) maximum displayed trajectories

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

## Examples

### Example 1

```sqf
[player] spawn BIS_fnc_traceBullets;
```

### Example 2

```sqf
[player, 50] spawn BIS_fnc_traceBullets;
```

### Example 3

```sqf
[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing
```

## See also

[drawLine3D](../commands/drawLine3D.md)

## Community notes

**Benargee** — 2015-03-26

Shooting bullets over water will show wavy lines that move with motion of the waves. This is probably due to using the wrong getPos variants when drawing 3D lines.

<sub>Source: [BI Community Wiki — BIS fnc traceBullets](https://community.bistudio.com/wiki/BIS_fnc_traceBullets) (revision 329387).</sub>
