BIS fnc traceBullets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 10: Line 10:
If you want to change the unit, first set {{ic|BIS_tracedShooter {{=}} [[nil]]}} ''then'' execute the script again.
If you want to change the unit, first set {{ic|BIS_tracedShooter {{=}} [[nil]]}} ''then'' execute the script again.


| [unit, number] call [[BIS_fnc_traceBullets]]
|s1=[unit, number] call [[BIS_fnc_traceBullets]]


|p1= unit: [[Object]]
|p1= unit: [[Object]]

Revision as of 16:56, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[unit, number] call BIS_fnc_traceBullets
Parameters:
unit: Object
number: Number - (Optional, default 20) maximum displayed trajectories
Return Value:
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

Additional Information

See also:
drawLine3D

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on March 26, 2015 - 23:25 (UTC)
Benargee
Arma 3 logo black.png1.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.