BIS fnc traceBullets: Difference between revisions
Jump to navigation
Jump to search
(my note) |
Lou Montana (talk | contribs) (Page filling, comment cleanup) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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]] |= Parameter 1 | ||
| | |p2= number: [[Number]] - (Optional, default 10) maximum displayed trajectories |= Parameter 2 | ||
| |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki>[</nowiki>[[player]]] [[spawn]] [[BIS_fnc_traceBullets]];</code> |= | |x1= <code><nowiki>[</nowiki>[[player]]] [[spawn]] [[BIS_fnc_traceBullets]];</code> |= Example 1 | ||
| | |x2= <code><nowiki>[</nowiki>[[player]], 20] [[spawn]] [[BIS_fnc_traceBullets]];</code> |= Example 2 | ||
|x3= <code><nowiki>[</nowiki>[[player]], 0] [[spawn]] [[BIS_fnc_traceBullets]]; {{codecomment|// remove bullet tracing}}</code> |= Example 3 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[drawLine3D]] |= See also | ||
}} | }} | ||
Line 61: | Line 47: | ||
<dt class="note">[[User:Benargee|Benargee]]</dt> | <dt class="note">[[User:Benargee|Benargee]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
{{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> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 19:05, 7 May 2018
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 setBIS_tracedShooter = nil
then execute the script again. - Execution:
- call
- Groups:
- Uncategorised
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
- 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