Arma 3 Scripting

Function in Diagnostic

BIS_fnc_traceBullets

Also available as Markdown and JSON, or read the original wiki page.

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

[unit, number] call BIS_fnc_traceBullets

Parameters:

Returns: Nothing

Examples

Example 1

[player] spawn BIS_fnc_traceBullets;

Example 2

[player, 50] spawn BIS_fnc_traceBullets;

Example 3

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

See also

drawLine3D

Community notes

Benargee

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.