BIS_fnc_traceBullets

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

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

Syntax:
[unit, number] call BIS_fnc_traceBullets
Parameters:
unit: Object
number: Number - (Optional, default 10) maximum displayed trajectories
Return Value:
Nothing

Examples

Example 1:
[player] spawn BIS_fnc_traceBullets;
Example 2:
[player, 20] spawn BIS_fnc_traceBullets;
Example 3:
[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing

Additional Information

Execution:
call
Multiplayer:
-
See also:
drawLine3D

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on March 26, 2015 - 23:25 (UTC)
Benargee
Introduced with Arma 3 version 1.40
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.