BIS fnc traceBullets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...)
Line 1: Line 1:
{{Function|Comments=
{{Function| arma3|1.00|gr1 = Diagnostic| Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.<br>
 
If you want to change the unit, first set {{Inline code|BIS_tracedShooter {{=}} [[nil]]}} ''then'' execute the script again.| [unit, number] call [[BIS_fnc_traceBullets]]|p1= unit: [[Object]]|p2= number: [[Number]] - (Optional, default 20) maximum displayed trajectories| [[Nothing]]|x1= <code>[<nowiki/>[[player]]] [[spawn]] [[BIS_fnc_traceBullets]];</code>|x2= <code>[<nowiki/>[[player]], 50] [[spawn]] [[BIS_fnc_traceBullets]];</code>|x3= <code>[<nowiki/>[[player]], 0] [[spawn]] [[BIS_fnc_traceBullets]]; {{cc|remove bullet tracing}}</code>| [[drawLine3D]] |SEEALSO=
| arma3 |Game name=
 
|1.00|Game version=
 
|gr1 = Diagnostic |GROUP1=
 
| Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.<br>
If you want to change the unit, first set {{Inline code|BIS_tracedShooter {{=}} [[nil]]}} ''then'' execute the script again. |DESCRIPTION=
 
| [unit, number] call [[BIS_fnc_traceBullets]] |SYNTAX=
 
|p1= unit: [[Object]] |PARAMETER1=
 
|p2= number: [[Number]] - (Optional, default 20) maximum displayed trajectories |PARAMETER2=
 
| [[Nothing]] |RETURNVALUE=
 
|x1= <code>[<nowiki/>[[player]]] [[spawn]] [[BIS_fnc_traceBullets]];</code> |EXAMPLE1=
 
|x2= <code>[<nowiki/>[[player]], 50] [[spawn]] [[BIS_fnc_traceBullets]];</code> |EXAMPLE2=
 
|x3= <code>[<nowiki/>[[player]], 0] [[spawn]] [[BIS_fnc_traceBullets]]; {{cc|remove bullet tracing}}</code> |EXAMPLE3=
 
| [[drawLine3D]] |SEEALSO=
}}
}}



Revision as of 09:56, 18 January 2021

Hover & click on the images for description

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.
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.