BIS fnc traceBullets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Diagnostic | ||
| 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 | If you want to change the unit, first set <sqf inline>BIS_tracedShooter = nil</sqf> ''then'' execute the script again. | ||
| [unit, number] call [[BIS_fnc_traceBullets]] | |s1= [unit, number] call [[BIS_fnc_traceBullets]] | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= number: [[Number]] - (Optional, default | |p2= number: [[Number]] - (Optional, default 20) maximum displayed trajectories | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[player] spawn BIS_fnc_traceBullets;</sqf> | ||
|x2= < | |x2= <sqf>[player, 50] spawn BIS_fnc_traceBullets;</sqf> | ||
|x3= < | |x3= <sqf>[player, 0] spawn BIS_fnc_traceBullets; // remove bullet tracing</sqf>|seealso= [[drawLine3D]] | ||
}} | |||
| | {{Note | ||
|user= Benargee | |||
|timestamp= 20150326232500 | |||
|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. | |||
|game= arma3 | |||
|version= 1.40 | |||
}} | }} | ||
Latest revision as of 14:25, 27 July 2022
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:
- Example 2:
- Example 3:
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 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.