BIS fnc traceBullets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)<nowiki\/>\[\[([a-zA-Z0-9_]+)\]\](.*)<\/code>" to "<code>$1$2$3</code>")
m (Some wiki formatting)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:


|descr= Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.<br>
|descr= 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 {{ic|BIS_tracedShooter {{=}} [[nil]]}} ''then'' execute the script again.
If you want to change the unit, first set <sqf inline>BIS_tracedShooter = nil</sqf> ''then'' execute the script again.


|s1= [unit, number] call [[BIS_fnc_traceBullets]]
|s1= [unit, number] call [[BIS_fnc_traceBullets]]
Line 17: Line 17:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[player] [[spawn]] [[BIS_fnc_traceBullets]];</code>
|x1= <sqf>[player] spawn BIS_fnc_traceBullets;</sqf>


|x2= <code>[player, 50] [[spawn]] [[BIS_fnc_traceBullets]];</code>
|x2= <sqf>[player, 50] spawn BIS_fnc_traceBullets;</sqf>


|x3= <code>[player, 0] [[spawn]] [[BIS_fnc_traceBullets]]; // remove bullet tracing</code>|seealso= [[drawLine3D]]
|x3= <sqf>[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing</sqf>|seealso= [[drawLine3D]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Benargee
<dt></dt>
|timestamp= 20150326232500
<dd class="notedate">Posted on March 26, 2015 - 23:25 (UTC)</dd>
|text= 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.
<dt class="note">[[User:Benargee|Benargee]]</dt>
|game= arma3
<dd class="note">
|version= 1.40
{{GVI|arma3|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.
}}
</dd>
 
</dl>

Latest revision as of 14:25, 27 July 2022

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
Benargee - c
Posted on Mar 26, 2015 - 23:25 (UTC)

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.