BIS fnc traceBullets: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|gr1 = Debug |GROUP1=" to "|gr1 = Diagnostic |GROUP1=") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Diagnostic |GROUP1= | |gr1 = Diagnostic |GROUP1= | ||
| Visualise unit's bullet trajectories. Can only be used on one shooter in a single instance.<br> | | 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= | 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= | | [unit, number] call [[BIS_fnc_traceBullets]] |SYNTAX= | ||
Line 20: | Line 17: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[<nowiki/>[[player]]] [[spawn]] [[BIS_fnc_traceBullets]];</code> |EXAMPLE1= | |x1= <code>[<nowiki/>[[player]]] [[spawn]] [[BIS_fnc_traceBullets]];</code> |EXAMPLE1= | ||
Line 27: | Line 23: | ||
|x3= <code>[<nowiki/>[[player]], 0] [[spawn]] [[BIS_fnc_traceBullets]]; {{cc|remove bullet tracing}}</code> |EXAMPLE3= | |x3= <code>[<nowiki/>[[player]], 0] [[spawn]] [[BIS_fnc_traceBullets]]; {{cc|remove bullet tracing}}</code> |EXAMPLE3= | ||
| [[drawLine3D]] |SEEALSO= | | [[drawLine3D]] |SEEALSO= |
Revision as of 00:11, 17 January 2021
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:
- 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